summaryrefslogtreecommitdiff
path: root/src/functiondisplay.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 13:06:40 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 13:06:40 -0700
commit1bc10d1408eb29b0675a030e029155dd046b1dd8 (patch)
tree6d649015bdfa69df9de1cb964906fd396b9db82b /src/functiondisplay.cpp
parent79dce6268850fb1b0d76c15d5399d66bcd286e5f (diff)
downloadstage-1bc10d1408eb29b0675a030e029155dd046b1dd8.tar.gz
stage-1bc10d1408eb29b0675a030e029155dd046b1dd8.tar.bz2
stage-1bc10d1408eb29b0675a030e029155dd046b1dd8.tar.xz
stage-1bc10d1408eb29b0675a030e029155dd046b1dd8.zip
Functions can be called now, at least manually.
A little more work needs to be done before they're being called from code correctly.
Diffstat (limited to 'src/functiondisplay.cpp')
-rw-r--r--src/functiondisplay.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/functiondisplay.cpp b/src/functiondisplay.cpp
index 920eefd..16b1175 100644
--- a/src/functiondisplay.cpp
+++ b/src/functiondisplay.cpp
@@ -1,5 +1,10 @@
1#include "functiondisplay.h" 1#include "functiondisplay.h"
2 2
3#include <bu/sio.h>
4#include "gamestate.h"
5
6using namespace Bu;
7
3FunctionDisplay::FunctionDisplay() 8FunctionDisplay::FunctionDisplay()
4{ 9{
5} 10}
@@ -8,7 +13,9 @@ FunctionDisplay::~FunctionDisplay()
8{ 13{
9} 14}
10 15
11Variable FunctionDisplay::call( const VariableList &lParams ) 16Variable FunctionDisplay::call( class GameState &gState )
12{ 17{
18 Variable v = gState.pop();
19 sio << "Display: " << v << sio.nl;
13} 20}
14 21