public function action(AbsTown $town) { $town->setGold(self::BYTURNGOLD * $this->getLevel() * $this->getDamageLevel() / 100); $town->setFood(self::BYTURNFOOD * $this->getLevel() * $this->getDamageLevel() / 100); $town->setStone(self::BYTURNSTONE * $this->getLevel() * $this->getDamageLevel() / 100); $town->setWood(self::BYTURNWOOD * $this->getLevel() * $this->getDamageLevel() / 100); }
public function action(AbsTown $town) { $town->setGold(self::GOLD); $town->setWood(self::WOOD); $town->setStone(self::STONE); $town->setFood(self::FOOD); $town->setProsperity(self::PROSPERITY); }
public function actionDesertion(AbsTown $town, House $house) { $town->setGold(self::GOLD); $town->setWood(self::WOOD); $town->setStone(self::STONE); $town->setFood(self::FOOD); $town->setProsperity(self::PROSPERITY); $house->destroy($town); }
public function actionWar(AbsTown $town, $choice) { if (!$choice) { $town->setWood(self::WOOD); $town->setStone(self::STONE); $town->setFood(self::FOOD); $town->setArmy(self::ARMY); $town->setProsperity(self::PROSPERITY); } else { $town->setGold(self::GOLD); $town->setProsperity(self::PROSPERITY); } }
public function action(AbsTown $town) { $town->setGold(self::BYTURNGOLD * $this->getLevel() * $this->getDamageLevel() / 100); }
public function action(AbsTown $town) { $town->setGold(self::GOLD); $town->setArmy(self::ARMY); $town->setProsperity(self::PROSPERITY); }