From 9171b9739dfb8a1ca0bf963c5041d0a801e4aa90 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 15 Jan 2005 14:15:50 +0000 Subject: Being struct/class switch --- src/being.h | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index cc7b3973..ec58b986 100644 --- a/src/being.h +++ b/src/being.h @@ -67,41 +67,16 @@ class Being { Being::~Being(); }; -struct NODE { - /** - * Constructor. - */ - NODE(); - - unsigned int id; - short job; - char coordinates[3]; - unsigned char type; - unsigned char action; - unsigned char frame; - PATH_NODE *path; - char *speech; - unsigned char speech_time; - int speech_color; - short tick_time; - short speed; - unsigned char emotion; - unsigned char emotion_time; - int text_x, text_y; // temp solution to fix speech position - short hair_style, hair_color; - short weapon; -}; - /** Removes all beings from the list */ void empty(); -/** Add a node to the list */ -void add_node(NODE *node); +/** Add a Being to the list */ +void add_node(Being *Being); -/** Return a specific id node */ -NODE *find_node(unsigned int id); +/** Return a specific id Being */ +Being *find_node(unsigned int id); -/** Remove a node */ +/** Remove a Being */ void remove_node(unsigned int id); PATH_NODE *calculate_path( @@ -118,10 +93,10 @@ unsigned int find_monster(unsigned short x, unsigned short y); void sort(); /** Remove all path nodes from a being */ -void empty_path(NODE *node); +void empty_path(Being *Being); -extern NODE *player_node; +extern Being *player_node; -extern std::list beings; +extern std::list beings; #endif -- cgit v1.2.3-70-g09d2