148 #endif // MAP_EVENT_H__ Declares the character class.
Class to write data from a Gzip compressed file.
s_int8 dir
Direction where the character is looking (-1 for any).
To notify when a mapcharacter left a mapsquare.
#define s_int32
32 bits long signed integer
Class to read data from a Gzip compressed file.
map_event()
Default constructor.
To notify when a mapcharacter "act" on a square.
bool get_state(igzstream &)
Loads the basic event date from a file.
s_int32 execute(const event *evnt)
Executes the script associated with this map event.
To notify when a character entered a mapsquare.
Baseclass for map enter/leave/action events.
action_event()
Default constructor.
mapcharacter * c
Pointer to the mapcharacter that can launch this event (NULL for any).
s_int32 x
X position (-1 for any).
bool equals(const event *evnt)
Compare two map events for equality.
leave_event()
Default constructor.
s_int32 map
Useless (for now).
s_int32 y
Y position (-1 for any).
enter_event()
Default constructor.
void put_state(ogzstream &) const
Saves the basic event data (such as the type or script data) to a file.
Representation of characters on a landmap.
Declares the event class.
s_int32 submap
Submap index (-1 for any).
#define s_int8
8 bits long signed integer