26 #ifndef TIME_EVENT_H__ 27 #define TIME_EVENT_H__ 106 return Time <= e->
time ();
191 #endif // TIME_EVENT_H__ Class to write data from a Gzip compressed file.
#define s_int32
32 bits long signed integer
Class to read data from a Gzip compressed file.
void put_state(ogzstream &out) const
Saves the basic event data (such as the type or script data) to a file.
bool get_state(igzstream &in)
Loads the basic event date from a file.
s_int32 Repeat
Defines how often the event should be repeated.
#define u_int32
32 bits long unsigned integer
time_event()
Standard constructor.
void pause()
Disable the event temporarily.
u_int8 Type
Event type - see enum above.
The time event executes the attached script or callback at a certain point in game-time.
time_event(const u_int32 &time)
Create a new time event.
Declares the event class.
void resume()
Re-enable an event that has been paused.
s_int32 execute(const event *evnt)
Executes the script associated with this time event.
u_int32 time() const
Get the event's "alarm" time, i.e.
bool equals(const event *evnt)
Compare two time events for equality.
void set_repeat(const string &interval, s_int32 count=-1)
Set whether the event should be raised at fixed intervals.