summaryrefslogtreecommitdiff
path: root/src/functiondelete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functiondelete.cpp')
-rw-r--r--src/functiondelete.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/functiondelete.cpp b/src/functiondelete.cpp
new file mode 100644
index 0000000..c9bfef4
--- /dev/null
+++ b/src/functiondelete.cpp
@@ -0,0 +1,19 @@
1#include "functiondelete.h"
2
3#include "gamestate.h"
4
5FunctionDelete::FunctionDelete()
6{
7}
8
9FunctionDelete::~FunctionDelete()
10{
11}
12
13void FunctionDelete::call( class GameState &gState )
14{
15 Variable v = gState.pop();
16 VariableRef r = v.getVariableRef();
17 gState.delVariable( r.sName, r.sid );
18}
19