26 #include "../common/common.h"
27 #include "../client/battlescape/events/e_parse.h"
28 #include "../client/cl_shared.h"
63 std::string s_one(
"one");
64 std::string s_two(
"two");
65 std::string s_three(
"three");
66 std::string s_four(
"four");
67 std::string s_five(
"five");
85 static bool check =
false;
86 const bool ret = check;
97 std::string s_one(
"one");
98 std::string s_two(
"two");
99 std::string s_three(
"three");
100 std::string s_four(
"four");
101 std::string s_five(
"five");
136 std::string s_one(
"one");
137 std::string s_two(
"two");
138 std::string s_three(
"three");
139 std::string s_four(
"three");
141 const int delay = 10;
147 one->delayFollowing = delay;
149 two->delayFollowing = delay;
151 three->delayFollowing = delay;
153 four->delayFollowing = delay;
static void SetUpTestCase()
TEST_F(EventsTest, Range)
void event_func(int now, void *data)
static void TearDownTestCase()
memPool_t * cl_genericPool
static bool delayCheckBlocked(int now, void *data)
ScheduleEventPtr Dequeue_Event(int now)
Finds and returns the first event in the event_queue that is due. If the event has a check function...
event_t
Possible event values.
#define Mem_CreatePool(name)
static bool delayCheck(int now, void *data)
static bool delayCheckBlockedVal
const eventRegister_t events[]
List of functions to register nodes.
void NET_WriteByte(dbuffer *buf, byte c)
event_t CL_ParseEvent(dbuffer *msg)
Called in case a svc_event was send via the network buffer.
int CL_ClearBattlescapeEvents(void)
GLsizei const GLvoid * data
ScheduleEventPtr Schedule_Event(int when, event_func *func, event_check_func *check, event_clean_func *clean, void *data)
Schedules an event to run on or after the given time, and when its check function returns true...