示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }