Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/unit/monster/monsternest.class.php
<?php
include_once $PATH_TO_CODE."/modules/dungeon/unit/undead/undeadrealobject.class.php";
include_once $PATH_TO_CODE."/script/zone.class.php";
include_once $PATH_TO_CODE."/script/imagemanager.class.php";
include_once $PATH_TO_CODE."/script/weapon.class.php";

include_once $PATH_TO_CODE."/script/log.class.php";

class MonsterNest extends UndeadRealObject
{
	public function getObjectInfoValueImage() {
		return DungeonConstante::$REAL_OBJECT_INFO_VALUE_MONSTER_NEST_IMAGE;
	}
	public function isAvailableToFindTrap() {
		return false;
	}
	public static function create($parZone, $parPlayerId, $parIsLobotomize=true) {
		$parZone->occupedWithMovable();
		global $gloObjectManager;
		$locPlayer = $gloObjectManager->getPlayer(1);
		$locObjectId = DungeonRealObject::createObject(DungeonConstante::$REAL_OBJECT_TYPE_MONSTER_NEST,
		$locPlayer, $parZone, DungeonConstante::$REAL_OBJECT_CATEGORY_MEDIUM_INFANTERY, $parIsLobotomize,
        	Constante::$OBJECT_DISPLAY_MAX, RealObject::$REAL_OBJECT_VISIBLE_STATE_VISIBLE_BY_ALL, 0);

		DungeonRealObject::insertInfo($locObjectId, 20, 20, 6,
		0,
		0,
		0, 0,
		0, 0,
		0,
		0);

		return $locObjectId;
	}

    public function move($parTargetZoneId, &$parResultMessage) {
        $parResultMessage=$this->getName()." can't move";
        return false;
    }
    public function kill($parKiller) {
    	if($parKiller) {
    		$this->sendMessageHasBeenKilled($parKiller);
    	}
        $this->deleteObject();
    }
	public static function staticGetName() {
		return "monster nest";
	}
	public function getName() {
		return MonsterNest::staticGetName();
	}

}
?>
Return current item: PhpBlock