From 1bc10d1408eb29b0675a030e029155dd046b1dd8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 13:06:40 -0700 Subject: Functions can be called now, at least manually. A little more work needs to be done before they're being called from code correctly. --- src/functiondisplay.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/functiondisplay.cpp') 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 @@ #include "functiondisplay.h" +#include +#include "gamestate.h" + +using namespace Bu; + FunctionDisplay::FunctionDisplay() { } @@ -8,7 +13,9 @@ FunctionDisplay::~FunctionDisplay() { } -Variable FunctionDisplay::call( const VariableList &lParams ) +Variable FunctionDisplay::call( class GameState &gState ) { + Variable v = gState.pop(); + sio << "Display: " << v << sio.nl; } -- cgit v1.2.3