#include "functionexists.h" #include "gamestate.h" FunctionExists::FunctionExists() { } FunctionExists::~FunctionExists() { } void FunctionExists::call( class GameState &gState ) { Variable v = gState.pop(); VariableRef r = v.getVariableRef(); gState.push( Variable( gState.hasVariable( r.sName, r.sid ) ) ); }