Skip to content

Commit

Permalink
Convert scheduler and event engine to use string messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
skittles1 committed Apr 18, 2015
1 parent 51f4bf4 commit 9166c01
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 449 deletions.
32 changes: 15 additions & 17 deletions kod/util/gameevent.kod
Expand Up @@ -7,7 +7,7 @@
% Meridian is a registered trademark.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GameEvent is UtilityFunctions

constants:
Expand All @@ -23,7 +23,7 @@ classvars:

vrStartMessage = event_start_msg
vrEndMessage = event_end_msg

vbAnnounce = FALSE

properties:
Expand All @@ -34,7 +34,7 @@ messages:
{
return;
}

Delete()
{
return;
Expand All @@ -44,33 +44,32 @@ messages:
{
return;
}

NewMinute()
{
return;
}

NewHour()
{

return;
}

NewDay()
{
return;
}

NewMonth()
{
return;
}

NewYear()
{
return;
}

StartEvent()
{
if vbAnnounce
Expand All @@ -87,17 +86,16 @@ messages:
{
Send(SYS,@SystemBroadcast,#type=SAY_MESSAGE,#string=vrEndMessage);
}
Send(Send(SYS,@GetEventEngine),@EventEnd,#oEvent=self);

Send(Send(SYS,@GetEventEngine),@EventEnd,#parm1=self);

return;
}

AdvanceEvent()
{
return;
}

end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 changes: 1 addition & 2 deletions kod/util/gameevent/invasion.kod
Expand Up @@ -32,7 +32,7 @@ messages:
{
propagate;
}

Delete()
{
propagate;
Expand All @@ -50,4 +50,3 @@ messages:

end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

5 changes: 2 additions & 3 deletions kod/util/gameevent/invasion/orcinvasion.kod
Expand Up @@ -18,7 +18,7 @@ resources:

OrcInvasion_start_msg = \
"The orc invasion has begun."

OrcInvasion_end_msg = \
"The orc invasion has ended."

Expand All @@ -42,7 +42,7 @@ messages:
{
propagate;
}

StartEvent()
{
propagate;
Expand All @@ -55,4 +55,3 @@ messages:

end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 comments on commit 9166c01

Please sign in to comment.