summaryrefslogtreecommitdiff
path: root/src/client/radar.c
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.debian>2009-04-12 14:29:51 +0200
committerDusan Durech <dusan@debian.debian>2009-04-12 14:29:51 +0200
commit876fc624df9728ee0feee26e1b31b53ed9ef3326 (patch)
treee20814ab6d07fb892284dcee11bc492532bdabaa /src/client/radar.c
parentdff1cbc31ca8d585c01f5bebd08e50cf07fd2b0c (diff)
convert all name function from oldName to new_name
Diffstat (limited to 'src/client/radar.c')
-rw-r--r--src/client/radar.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/client/radar.c b/src/client/radar.c
index b45d80f..5770cf0 100644
--- a/src/client/radar.c
+++ b/src/client/radar.c
@@ -40,7 +40,7 @@ static void destroyRadarItem(radar_item_t * p)
free(p);
}
-void addToRadar(int id, int x, int y, int type)
+void radar_add(int id, int x, int y, int type)
{
int i;
@@ -57,10 +57,10 @@ void addToRadar(int id, int x, int y, int type)
}
}
- addList(listRadar, newRadarItem(id, x, y, type));
+ list_add(listRadar, newRadarItem(id, x, y, type));
}
-void delFromRadar(int id)
+void radar_del(int id)
{
int i;
@@ -70,26 +70,26 @@ void delFromRadar(int id)
thisRadarItem = (radar_item_t *) listRadar->list[i];
if (thisRadarItem->id == id) {
- delListItem(listRadar, i, destroyRadarItem);
+ list_del_item(listRadar, i, destroyRadarItem);
return;
}
}
}
-void initRadar()
+void radar_init()
{
- assert(isImageInicialized() == TRUE);
- assert(isInterfaceInicialized() == TRUE);
+ assert(image_is_inicialized() == TRUE);
+ assert(interface_is_inicialized() == TRUE);
- g_radar = addImageData("radar.png", IMAGE_NO_ALPHA, "radar", IMAGE_GROUP_USER);
- listRadar = newList();
+ g_radar = image_add("radar.png", IMAGE_NO_ALPHA, "radar", IMAGE_GROUP_USER);
+ listRadar = list_new();
}
-void drawRadar(arena_t * arena)
+void radar_draw(arena_t * arena)
{
int i;
- drawImage(g_radar, RADAR_LOCATION_X, RADAR_LOCATION_Y, 0, 0, RADAR_SIZE_X + 2, RADAR_SIZE_Y + 2);
+ image_draw(g_radar, RADAR_LOCATION_X, RADAR_LOCATION_Y, 0, 0, RADAR_SIZE_X + 2, RADAR_SIZE_Y + 2);
for (i = 0; i < listRadar->count; i++) {
radar_item_t *thisRadarItem;
@@ -102,13 +102,13 @@ void drawRadar(arena_t * arena)
y = (((float) RADAR_SIZE_Y) / ((float) arena->h)) * ((float) thisRadarItem->y);
if (x >= 0 && x <= RADAR_SIZE_X && y >= 0 && y <= RADAR_SIZE_Y) {
- drawImage(g_radar, RADAR_LOCATION_X + 1 + x, RADAR_LOCATION_Y + 1 + y,
+ image_draw(g_radar, RADAR_LOCATION_X + 1 + x, RADAR_LOCATION_Y + 1 + y,
2 * thisRadarItem->type, RADAR_SIZE_Y + 2, 2, 2);
}
}
}
-void quitRadar()
+void radar_quit()
{
- destroyListItem(listRadar, destroyRadarItem);
+ list_destroy_item(listRadar, destroyRadarItem);
}