#include "objects.h" //****************************** bool BallOfString::untie_string() { if(hold_location.empty()) tie_sw = false; return !tie_sw; // return true if tie_sw is false, // return false if tie_sw is true. } void BallOfString::save_location(Cell* cell) { hold_location.push(cell); } Cell* BallOfString::get_location() { Cell* tmp; if(hold_location.empty()){ return NULL; } tmp = hold_location.top(); hold_location.pop(); return tmp; } //**************************** //**************************** Cell::Cell(char ladder=NULL, bool ex=false)//ex = exit, ladder = u, d, or l { ladder_type = ladder; exit_sw = ex; club = NULL; ball_of_string = NULL; torch = NULL; compass = false; description = BLANK; } //****************************