Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/unit/rallypoint.class.php
<?php
include_once $PATH_TO_CODE."/modules/dungeon/unit/dungeonrealobject.class.php";

class RallyPoint extends DungeonRealObject
{
    
    public function getObjectInfoValueImage() {
        return DungeonConstante::$REAL_OBJECT_INFO_VALUE_RALLY_POINT_IMAGE;
    }

    public static function create($parZone, $parPlayerId, $parRallyPointLevel)
    {
        global $gloObjectManager;
        $locPlayer = $gloObjectManager->getPlayer($parPlayerId);
        $locObjectId = DungeonRealObject::createObject(DungeonConstante::$REAL_OBJECT_TYPE_RALLY_POINT,
        	$locPlayer, $parZone, DungeonConstante::$REAL_OBJECT_CATEGORY_TRAP, false,
        	Constante::$DISPLAY_PRIORITY_LOW, RealObject::$REAL_OBJECT_VISIBLE_STATE_VISIBLE_BY_ALLIANCE, 0);
        	
		DungeonRealObject::insertInfo($locObjectId, 1, 1, 0,
				0, 0, 
        		0, 0,
        		0, 0,
        		0, 0);
        $locObject = $gloObjectManager->getRealObject($locObjectId); 
		$locObject->setLevel($parRallyPointLevel);
        
        return $locObjectId;
    }
    public function increasePopulationDueToHumanKillAction() {
    	//No gain of population
    }
    public function addXP($parXP) {
    	//No XP for Trap
    }
	public function isAvailableToFindTrap() {
		return false;
	}
    public function dig($parTargetZoneId) {
        return false;
    }
    public function kill($parKiller) {
        $this->deleteObject();
    }
    public function move($parTargetZoneId, &$parResultMessage) {
        $parResultMessage=$this->getName()." can't move";
        return false;
    }
    public static function staticGetName() {
    	return "rally point";
    }
    public function getName() {
      return RallyPoint::staticGetName();
    }
}
?>
Return current item: PhpBlock