/** * adds an action to the action stack * * @see Game\Action.Action::addAction() * @return Game\Grid */ public function addAction(AbstractAction $action) { $this->actions[$action->getName()] = $action; $action->setGrid($this); return $this; }
/** * adds an action to the action stack * * @see Game\Action.Action::addAction() * @return Game\Tile */ public function addAction(AbstractAction $action) { $action->setSubject($this); $this->actions[$action->getName()] = $action; return $this; }