/// <summary> /// Todo: Finish code. /// </summary> /// <returns></returns> public bool CanSpawn() { if (!Monster.ExistsMonster(MonsterName)) { return(false); } Position pos = new Position(CenterX, CenterY, CenterZ); Map map = world.GetGameMap(); Tile tile = map.GetTile(pos); if (tile == null || tile.ContainsType(Constants.TYPE_BLOCKS_AUTO_WALK)) { return(false); } return(true); }