/* * Copyright (c) 2010-2015 OTClient * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #ifndef CLIENT_DECLARATIONS_H #define CLIENT_DECLARATIONS_H #include "global.h" #include #include // core class Map; class Game; class MapView; class LightView; class Tile; class Thing; class Item; class Container; class Creature; class Monster; class Npc; class Player; class LocalPlayer; class Effect; class Missile; class AnimatedText; class StaticText; class Animator; class ThingType; class ItemType; class House; class Town; class CreatureType; class Spawn; class TileBlock; typedef stdext::shared_object_ptr MapViewPtr; typedef stdext::shared_object_ptr LightViewPtr; typedef stdext::shared_object_ptr TilePtr; typedef stdext::shared_object_ptr ThingPtr; typedef stdext::shared_object_ptr ItemPtr; typedef stdext::shared_object_ptr ContainerPtr; typedef stdext::shared_object_ptr CreaturePtr; typedef stdext::shared_object_ptr MonsterPtr; typedef stdext::shared_object_ptr NpcPtr; typedef stdext::shared_object_ptr PlayerPtr; typedef stdext::shared_object_ptr LocalPlayerPtr; typedef stdext::shared_object_ptr EffectPtr; typedef stdext::shared_object_ptr MissilePtr; typedef stdext::shared_object_ptr AnimatedTextPtr; typedef stdext::shared_object_ptr StaticTextPtr; typedef stdext::shared_object_ptr AnimatorPtr; typedef stdext::shared_object_ptr ThingTypePtr; typedef stdext::shared_object_ptr ItemTypePtr; typedef stdext::shared_object_ptr HousePtr; typedef stdext::shared_object_ptr TownPtr; typedef stdext::shared_object_ptr CreatureTypePtr; typedef stdext::shared_object_ptr SpawnPtr; typedef std::vector ThingList; typedef std::vector ThingTypeList; typedef std::vector ItemTypeList; typedef std::list HouseList; typedef std::list TownList; typedef std::list ItemList; typedef std::list TileList; typedef std::vector ItemVector; typedef std::unordered_map TileMap; typedef std::unordered_map CreatureMap; typedef std::unordered_map SpawnMap; // net class ProtocolLogin; class ProtocolGame; typedef stdext::shared_object_ptr ProtocolGamePtr; typedef stdext::shared_object_ptr ProtocolLoginPtr; // ui class UIItem; class UICreature; class UIMap; class UIMinimap; class UIProgressRect; class UIMapAnchorLayout; class UIPositionAnchor; class UISprite; typedef stdext::shared_object_ptr UIItemPtr; typedef stdext::shared_object_ptr UICreaturePtr; typedef stdext::shared_object_ptr UISpritePtr; typedef stdext::shared_object_ptr UIMapPtr; typedef stdext::shared_object_ptr UIMinimapPtr; typedef stdext::shared_object_ptr UIProgressRectPtr; typedef stdext::shared_object_ptr UIMapAnchorLayoutPtr; typedef stdext::shared_object_ptr UIPositionAnchorPtr; #endif