Otclient  14/8/2020
map.h File Reference
#include "creature.h"
#include "houses.h"
#include "towns.h"
#include "creatures.h"
#include "animatedtext.h"
#include "statictext.h"
#include "tile.h"
#include <framework/core/clock.h>
Include dependency graph for map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TileBlock
 
struct  AwareRange
 
class  Map
 

Enumerations

enum  OTBM_ItemAttr {
  OTBM_ATTR_DESCRIPTION = 1, OTBM_ATTR_EXT_FILE = 2, OTBM_ATTR_TILE_FLAGS = 3, OTBM_ATTR_ACTION_ID = 4,
  OTBM_ATTR_UNIQUE_ID = 5, OTBM_ATTR_TEXT = 6, OTBM_ATTR_DESC = 7, OTBM_ATTR_TELE_DEST = 8,
  OTBM_ATTR_ITEM = 9, OTBM_ATTR_DEPOT_ID = 10, OTBM_ATTR_SPAWN_FILE = 11, OTBM_ATTR_RUNE_CHARGES = 12,
  OTBM_ATTR_HOUSE_FILE = 13, OTBM_ATTR_HOUSEDOORID = 14, OTBM_ATTR_COUNT = 15, OTBM_ATTR_DURATION = 16,
  OTBM_ATTR_DECAYING_STATE = 17, OTBM_ATTR_WRITTENDATE = 18, OTBM_ATTR_WRITTENBY = 19, OTBM_ATTR_SLEEPERGUID = 20,
  OTBM_ATTR_SLEEPSTART = 21, OTBM_ATTR_CHARGES = 22, OTBM_ATTR_CONTAINER_ITEMS = 23, OTBM_ATTR_ATTRIBUTE_MAP = 128,
  OTBM_ATTR_WIDTH = 129, OTBM_ATTR_HEIGHT = 130
}
 
enum  OTBM_NodeTypes_t {
  OTBM_ROOTV2 = 1, OTBM_MAP_DATA = 2, OTBM_ITEM_DEF = 3, OTBM_TILE_AREA = 4,
  OTBM_TILE = 5, OTBM_ITEM = 6, OTBM_TILE_SQUARE = 7, OTBM_TILE_REF = 8,
  OTBM_SPAWNS = 9, OTBM_SPAWN_AREA = 10, OTBM_MONSTER = 11, OTBM_TOWNS = 12,
  OTBM_TOWN = 13, OTBM_HOUSETILE = 14, OTBM_WAYPOINTS = 15, OTBM_WAYPOINT = 16
}
 
enum  { OTCM_SIGNATURE = 0x4D43544F, OTCM_VERSION = 1 }
 
enum  { BLOCK_SIZE = 32 }
 
enum  : uint8 { Animation_Force, Animation_Show }
 

Variables

Map g_map
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OTCM_SIGNATURE 
OTCM_VERSION 

Definition at line 87 of file map.h.

◆ anonymous enum

anonymous enum
Enumerator
BLOCK_SIZE 

Definition at line 92 of file map.h.

◆ anonymous enum

anonymous enum : uint8
Enumerator
Animation_Force 
Animation_Show 

Definition at line 96 of file map.h.

◆ OTBM_ItemAttr

Enumerator
OTBM_ATTR_DESCRIPTION 
OTBM_ATTR_EXT_FILE 
OTBM_ATTR_TILE_FLAGS 
OTBM_ATTR_ACTION_ID 
OTBM_ATTR_UNIQUE_ID 
OTBM_ATTR_TEXT 
OTBM_ATTR_DESC 
OTBM_ATTR_TELE_DEST 
OTBM_ATTR_ITEM 
OTBM_ATTR_DEPOT_ID 
OTBM_ATTR_SPAWN_FILE 
OTBM_ATTR_RUNE_CHARGES 
OTBM_ATTR_HOUSE_FILE 
OTBM_ATTR_HOUSEDOORID 
OTBM_ATTR_COUNT 
OTBM_ATTR_DURATION 
OTBM_ATTR_DECAYING_STATE 
OTBM_ATTR_WRITTENDATE 
OTBM_ATTR_WRITTENBY 
OTBM_ATTR_SLEEPERGUID 
OTBM_ATTR_SLEEPSTART 
OTBM_ATTR_CHARGES 
OTBM_ATTR_CONTAINER_ITEMS 
OTBM_ATTR_ATTRIBUTE_MAP 
OTBM_ATTR_WIDTH 

just random numbers, they're not actually used by the binary reader...

OTBM_ATTR_HEIGHT 

Definition at line 36 of file map.h.

◆ OTBM_NodeTypes_t

Enumerator
OTBM_ROOTV2 
OTBM_MAP_DATA 
OTBM_ITEM_DEF 
OTBM_TILE_AREA 
OTBM_TILE 
OTBM_ITEM 
OTBM_TILE_SQUARE 
OTBM_TILE_REF 
OTBM_SPAWNS 
OTBM_SPAWN_AREA 
OTBM_MONSTER 
OTBM_TOWNS 
OTBM_TOWN 
OTBM_HOUSETILE 
OTBM_WAYPOINTS 
OTBM_WAYPOINT 

Definition at line 67 of file map.h.

Variable Documentation

◆ g_map

Map g_map

Definition at line 36 of file map.cpp.