m_north = $lunch_room; $laboratory->m_description = '

This is the laboratory. Equipment churns, bubbles, and steams. The door to the lunch room is north.

'; $equipment->m_description = 'The equipment does not matter, it merely provides ambiance.'; $equipment->m_takeable = false; $lunch_room->m_south = $laboratory; $lunch_room->m_description = '

An old vending machine hums in the corner next to a wastebasket. South is the lab.

'; $machine->m_description = '

The imposing machine is full of expired snack foods. They don\'t interest you.

'; $machine->m_takeable = false; $straw->m_description = 'A red and white striped drinking straw.'; $straw->m_takeable = true; $wastebasket->m_description = 'A wastebasket.'; $wastebasket->m_takeable = false; $wastebasket->move($straw); $lunch_room->move($machine); $lunch_room->move($wastebasket); $laboratory->move($equipment); $laboratory->move($player); $this->move($laboratory); $this->move($lunch_room); $this->m_player = $player; $this->m_player->m_parent->describe(); } public function local_obj($name) { return $this->m_player->m_parent->getr($name); } public function parse($i) { if($i == 'help' || $i == 'h' || $i == '?') { echo '

Help: Standard commands: l (look), n, s, e, w, x object (examine), t object (take)

'; } elseif($i == 'n' || $i == 'north') { $this->m_player->m_parent->north(); } elseif($i == 's' || $i == 'south') { $this->m_player->m_parent->south(); } elseif($i == 'e' || $i == 'east') { $this->m_player->m_parent->east(); } elseif($i == 'w' || $i == 'west') { $this->m_player->m_parent->east(); } elseif($i == 'l' || $i == 'look') { $this->m_player->m_parent->describe(); } elseif(preg_match('/^(x|examine)\s+([a-z]+)$/', $i, $m)) { $obj = $this->local_obj($m[2]); if($obj) { $obj->describe(); } else { echo '

It is not here.

'; } } elseif(preg_match('/^(t|take)\s+([a-z]+)$/', $i, $m)) { $obj = $this->local_obj($m[2]); if($obj) { $obj->take(); } else { echo '

It is not here.

'; } } else { echo '

I do not understand what you are trying to accomplish.

'; } echo "
Debug:";
		$this->dump();
		echo '
'; } } ?>