/* * Copyright (c) 2010-2012 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 OTCLIENT_DECLARATIONS_H #define OTCLIENT_DECLARATIONS_H #include "global.h" #include #include // core class Map; class Game; class MapView; 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 ThingType; class ItemType; class House; class Town; class CreatureType; typedef boost::intrusive_ptr MapViewPtr; typedef boost::intrusive_ptr TilePtr; typedef boost::intrusive_ptr ThingPtr; typedef boost::intrusive_ptr ItemPtr; typedef boost::intrusive_ptr ContainerPtr; typedef boost::intrusive_ptr CreaturePtr; typedef boost::intrusive_ptr MonsterPtr; typedef boost::intrusive_ptr NpcPtr; typedef boost::intrusive_ptr PlayerPtr; typedef boost::intrusive_ptr LocalPlayerPtr; typedef boost::intrusive_ptr EffectPtr; typedef boost::intrusive_ptr MissilePtr; typedef boost::intrusive_ptr AnimatedTextPtr; typedef boost::intrusive_ptr StaticTextPtr; typedef boost::intrusive_ptr ThingTypePtr; typedef boost::intrusive_ptr ItemTypePtr; typedef boost::intrusive_ptr HousePtr; typedef boost::intrusive_ptr TownPtr; typedef boost::intrusive_ptr CreatureTypePtr; typedef std::vector ThingList; typedef std::vector ThingTypeList; typedef std::vector ItemTypeList; typedef std::vector HouseList; typedef std::vector TownList; typedef std::unordered_map TileMap; // net class ProtocolLogin; class ProtocolGame; typedef boost::intrusive_ptr ProtocolGamePtr; typedef boost::intrusive_ptr ProtocolLoginPtr; // ui class UIItem; class UICreature; class UIMap; class UIProgressRect; typedef boost::intrusive_ptr UIItemPtr; typedef boost::intrusive_ptr UICreaturePtr; typedef boost::intrusive_ptr UIMapPtr; typedef boost::intrusive_ptr UIProgressRectPtr; #endif