diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-31 00:13:13 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-31 00:13:13 -0700 |
commit | 55e6f570f5760e970c6523458914b5e4c63a6ce4 (patch) | |
tree | ae996d612c6c55b914a960139a618922bf7e4971 /src/game.cpp | |
parent | 3357b0a0ecc4d36ccd3c2668e9d55aaaefedf4df (diff) | |
download | stage-55e6f570f5760e970c6523458914b5e4c63a6ce4.tar.gz stage-55e6f570f5760e970c6523458914b5e4c63a6ce4.tar.bz2 stage-55e6f570f5760e970c6523458914b5e4c63a6ce4.tar.xz stage-55e6f570f5760e970c6523458914b5e4c63a6ce4.zip |
Random function added, other fixes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 910cec2..c19b039 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -4,13 +4,16 @@ | |||
4 | #include "functionexists.h" | 4 | #include "functionexists.h" |
5 | #include "functiondelete.h" | 5 | #include "functiondelete.h" |
6 | #include "functionexit.h" | 6 | #include "functionexit.h" |
7 | #include "functionrandom.h" | ||
7 | 8 | ||
8 | Game::Game() | 9 | Game::Game() |
9 | { | 10 | { |
11 | hGlobalParam.insert("start", Variable::newSituationName("start") ); | ||
10 | addFunction( new FunctionDisplay() ); | 12 | addFunction( new FunctionDisplay() ); |
11 | addFunction( new FunctionExists() ); | 13 | addFunction( new FunctionExists() ); |
12 | addFunction( new FunctionDelete() ); | 14 | addFunction( new FunctionDelete() ); |
13 | addFunction( new FunctionExit() ); | 15 | addFunction( new FunctionExit() ); |
16 | addFunction( new FunctionRandom() ); | ||
14 | } | 17 | } |
15 | 18 | ||
16 | Game::~Game() | 19 | Game::~Game() |