Otclient  14/8/2020
declarations.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
23 #ifndef CLIENT_DECLARATIONS_H
24 #define CLIENT_DECLARATIONS_H
25 
26 #include "global.h"
29 
30 // core
31 class Map;
32 class Game;
33 class MapView;
34 class LightView;
35 class Tile;
36 class Thing;
37 class Item;
38 class Container;
39 class Creature;
40 class Monster;
41 class Npc;
42 class Player;
43 class LocalPlayer;
44 class Effect;
45 class Missile;
46 class AnimatedText;
47 class StaticText;
48 class Animator;
49 class ThingType;
50 class ItemType;
51 class House;
52 class Town;
53 class CreatureType;
54 class Spawn;
55 class TileBlock;
56 
79 
80 typedef std::vector<ThingPtr> ThingList;
81 typedef std::vector<ThingTypePtr> ThingTypeList;
82 typedef std::vector<ItemTypePtr> ItemTypeList;
83 typedef std::list<HousePtr> HouseList;
84 typedef std::list<TownPtr> TownList;
85 typedef std::list<ItemPtr> ItemList;
86 typedef std::list<TilePtr> TileList;
87 typedef std::vector<ItemPtr> ItemVector;
88 typedef std::unordered_map<Position, TilePtr, PositionHasher> TileMap;
89 typedef std::unordered_map<Position, CreatureTypePtr, PositionHasher> CreatureMap;
90 typedef std::unordered_map<Position, SpawnPtr, PositionHasher> SpawnMap;
91 
92 // net
93 class ProtocolLogin;
95 
98 
99 // ui
100 class UIItem;
101 class UICreature;
102 class UIMap;
103 class UIMinimap;
104 class UIProgressRect;
105 class UIMapAnchorLayout;
106 class UIPositionAnchor;
107 class UISprite;
108 
117 
118 #endif
ItemTypeList
std::vector< ItemTypePtr > ItemTypeList
Definition: declarations.h:82
TownPtr
stdext::shared_object_ptr< Town > TownPtr
Definition: declarations.h:76
UIMapAnchorLayout
Definition: uimapanchorlayout.h:42
HouseList
std::list< HousePtr > HouseList
Definition: declarations.h:83
CreatureType
Definition: creatures.h:79
TileMap
std::unordered_map< Position, TilePtr, PositionHasher > TileMap
Definition: declarations.h:88
AnimatedTextPtr
stdext::shared_object_ptr< AnimatedText > AnimatedTextPtr
Definition: declarations.h:70
ProtocolLoginPtr
stdext::shared_object_ptr< ProtocolLogin > ProtocolLoginPtr
Definition: declarations.h:97
UIMap
Definition: uimap.h:32
ProtocolGame
Definition: protocolgame.h:31
EffectPtr
stdext::shared_object_ptr< Effect > EffectPtr
Definition: declarations.h:68
Effect
Definition: effect.h:31
UIMapPtr
stdext::shared_object_ptr< UIMap > UIMapPtr
Definition: declarations.h:112
LocalPlayer
Definition: localplayer.h:29
PlayerPtr
stdext::shared_object_ptr< Player > PlayerPtr
Definition: declarations.h:66
UIItem
Definition: uiitem.h:30
Creature
Definition: creature.h:37
ItemTypePtr
stdext::shared_object_ptr< ItemType > ItemTypePtr
Definition: declarations.h:74
MissilePtr
stdext::shared_object_ptr< Missile > MissilePtr
Definition: declarations.h:69
StaticText
Definition: statictext.h:31
Spawn
Definition: creatures.h:52
ItemList
std::list< ItemPtr > ItemList
Definition: declarations.h:85
TileBlock
Definition: map.h:101
CreaturePtr
stdext::shared_object_ptr< Creature > CreaturePtr
Definition: declarations.h:63
UISprite
Definition: uisprite.h:29
Thing
Definition: thing.h:33
LightView
Definition: lightview.h:37
MapViewPtr
stdext::shared_object_ptr< MapView > MapViewPtr
Definition: declarations.h:55
declarations.h
UIMapAnchorLayoutPtr
stdext::shared_object_ptr< UIMapAnchorLayout > UIMapAnchorLayoutPtr
Definition: declarations.h:115
global.h
UICreaturePtr
stdext::shared_object_ptr< UICreature > UICreaturePtr
Definition: declarations.h:110
Monster
Definition: creature.h:217
UIPositionAnchorPtr
stdext::shared_object_ptr< UIPositionAnchor > UIPositionAnchorPtr
Definition: declarations.h:116
declarations.h
Npc
Definition: creature.h:210
CreatureTypePtr
stdext::shared_object_ptr< CreatureType > CreatureTypePtr
Definition: declarations.h:77
UIItemPtr
stdext::shared_object_ptr< UIItem > UIItemPtr
Definition: declarations.h:107
Container
Definition: container.h:32
HousePtr
stdext::shared_object_ptr< House > HousePtr
Definition: declarations.h:75
ItemType
Definition: itemtype.h:130
TownList
std::list< TownPtr > TownList
Definition: declarations.h:84
ThingType
Definition: thingtype.h:123
UIMinimapPtr
stdext::shared_object_ptr< UIMinimap > UIMinimapPtr
Definition: declarations.h:113
ThingTypePtr
stdext::shared_object_ptr< ThingType > ThingTypePtr
Definition: declarations.h:73
CreatureMap
std::unordered_map< Position, CreatureTypePtr, PositionHasher > CreatureMap
Definition: declarations.h:89
Town
Definition: towns.h:29
UICreature
Definition: uicreature.h:30
UIProgressRectPtr
stdext::shared_object_ptr< UIProgressRect > UIProgressRectPtr
Definition: declarations.h:114
House
Definition: houses.h:41
Item
Definition: item.h:76
LightViewPtr
stdext::shared_object_ptr< LightView > LightViewPtr
Definition: declarations.h:58
TileList
std::list< TilePtr > TileList
Definition: declarations.h:86
MonsterPtr
stdext::shared_object_ptr< Monster > MonsterPtr
Definition: declarations.h:64
SpawnPtr
stdext::shared_object_ptr< Spawn > SpawnPtr
Definition: declarations.h:78
ContainerPtr
stdext::shared_object_ptr< Container > ContainerPtr
Definition: declarations.h:62
Missile
Definition: missile.h:31
stdext::shared_object_ptr< MapView >
ThingTypeList
std::vector< ThingTypePtr > ThingTypeList
Definition: declarations.h:81
MapView
Definition: mapview.h:34
Tile
Definition: tile.h:56
UISpritePtr
stdext::shared_object_ptr< UISprite > UISpritePtr
Definition: declarations.h:111
NpcPtr
stdext::shared_object_ptr< Npc > NpcPtr
Definition: declarations.h:65
AnimatorPtr
stdext::shared_object_ptr< Animator > AnimatorPtr
Definition: declarations.h:72
AnimatedText
Definition: animatedtext.h:32
StaticTextPtr
stdext::shared_object_ptr< StaticText > StaticTextPtr
Definition: declarations.h:71
ThingPtr
stdext::shared_object_ptr< Thing > ThingPtr
Definition: declarations.h:60
UIProgressRect
Definition: uiprogressrect.h:30
ItemVector
std::vector< ItemPtr > ItemVector
Definition: declarations.h:87
LocalPlayerPtr
stdext::shared_object_ptr< LocalPlayer > LocalPlayerPtr
Definition: declarations.h:67
TilePtr
stdext::shared_object_ptr< Tile > TilePtr
Definition: declarations.h:59
SpawnMap
std::unordered_map< Position, SpawnPtr, PositionHasher > SpawnMap
Definition: declarations.h:90
UIPositionAnchor
Definition: uimapanchorlayout.h:29
Animator
Definition: animator.h:43
ProtocolGamePtr
stdext::shared_object_ptr< ProtocolGame > ProtocolGamePtr
Definition: declarations.h:94
UIMinimap
Definition: uiminimap.h:29
ItemPtr
stdext::shared_object_ptr< Item > ItemPtr
Definition: declarations.h:61
ThingList
std::vector< ThingPtr > ThingList
Definition: declarations.h:80
Player
Definition: player.h:29
Map
Definition: map.h:139
Game
Definition: game.h:61