27 #ifndef CHARACTER_BASE_H_ 28 #define CHARACTER_BASE_H_ 35 #define DIALOG_DIR "dialogues/" 108 if (
get_val (
"type") == PLAYER)
return "Player";
Class to write data from a Gzip compressed file.
character_base()
Default constructor.
Class to read data from a Gzip compressed file.
void set_name(string newname)
Sets the name of the character.
void get_state(igzstream &in)
Loads the state (attributes) of the character from an opened file.
string get_id()
Returns an unique identifier of the character.
#define u_int32
32 bits long unsigned integer
void put_state(ogzstream &out)
Saves the state (ttributes) of the character into an opened file.
string get_portrait() const
Returns the current portrait of the character.
Base character class containing attributes and dialog stuff.
void set_color(int c)
Sets the color representing the character.
s_int32 get_val(string key)
Returns the value of a key.
Declares the storage and objects classes.
void set_dialogue(string dialogue)
Sets the dialogue of the character.
string get_name() const
Returns the name of the character.
~character_base()
Destructor.
Declares the igzstream, ogzstream and fileops classes.
void set_portrait(string fname)
Sets the current portrait of the character.
string get_dialogue() const
Return the file name of the current character's dialog.
u_int32 get_color() const
Returns the color representing the character.