diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
commit | ee416a5f3de03a689247a290077e7fdf451e1a23 (patch) | |
tree | f456df99f954919ac7a425606df51f010aa4ef2d /src/game.cpp | |
parent | 4070dda1560bc729c3e272f0a5c03d77391e2661 (diff) | |
download | mana-client-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.gz mana-client-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.bz2 mana-client-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.xz mana-client-ee416a5f3de03a689247a290077e7fdf451e1a23.zip |
Well improved window container and window widgets a bit, and made a start
on support for modal dialogs. Still some issues to work out. Tell me if you
experience something unsettling.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/game.cpp b/src/game.cpp index adad9e0f..71340f16 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -101,10 +101,6 @@ void second(void) { } END_OF_FUNCTION(second); -/** - * Return elapsed time (Warning: very unsafe function. It supposes the delay - * is always < MAX_TIME ms) - */ short get_elapsed_time(short start_time) { if (start_time <= tick_time) { return tick_time - start_time; @@ -114,9 +110,6 @@ short get_elapsed_time(short start_time) { } } -/** - * Main game loop - */ void game() { do_init(); GraphicEngine *graphicEngine = new GraphicEngine(); @@ -146,9 +139,6 @@ void game() { close_session(); } -/** - * Initialize game engine - */ void do_init() { if (!load_map(map_path)) { error("Could not find map file"); @@ -188,15 +178,9 @@ void do_init() { remove("./docs/packet.list"); } -/** - * Clean the engine - */ void do_exit() { } -/** - * Check user input - */ void do_input() { if (walk_status == 0) { int x = get_x(player_node->coordinates); @@ -354,18 +338,12 @@ bool handle_key(int unicode, int scancode) return false; } -/** - * Calculate packet length - */ int get_packet_length(short id) { int len = get_length(id); if (len == -1)len = RFIFOW(2); return len; } -/** - * Parse data received from map server into input buffer - */ void do_parse() { unsigned short id; char *temp; @@ -665,7 +643,7 @@ void do_parse() { } statusWindow->update(); if(char_info->hp==0) { - OkDialog *death = new OkDialog(guiTop, + OkDialog *death = new OkDialog("Message", "You're now dead, press ok to restart"); alert("","","","","",0,0); WFIFOW(0) = net_w_value(0x00b2); |