![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <OpenBattleSpawnerArea.hpp>
Public Member Functions | |
| OpenBattleSpawnerArea (const yap::ID &id) | |
| virtual | ~OpenBattleSpawnerArea () |
| void | SetBaseSprite (yap::ISprite *baseSprite) |
ICloneable members. | |
| virtual OpenBattleSpawnerArea * | Clone () const |
IDrawable members. | |
| virtual void | Draw (yap::IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
IDrawableWorldObject members. | |
| virtual float | GetComparisonPoint () const |
| Specifies the point from which to make comparison. | |
| virtual int | GetLayerDepth () const |
| Specifies the layer depth whose this IDrawableWorldObject belongs to. The layer depth is a prioritary factor for drawing order. | |
| virtual void | ChangeWorldDrawingPolicy (const yap::IWorldDrawingPolicy &worldDrawingPolicy) |
| Changes the way that instance of IDrawableWorldObject is represented on the screen from its world position. | |
IDrawableDynamicWorldObject members. | |
| virtual yap::Event < IDrawableDynamicWorldObject &, const yap::Vector2 & > & | OnOrderStateChangedEvent () |
Public Member Functions inherited from yap::OpenBattleSpawnerArea | |
| virtual void | Accept (IDynamicWorldObjectVisitor &visitor) |
| virtual void | Accept (IDynamicWorldObjectConstVisitor &visitor) const |
Public Member Functions inherited from yap::BattleSpawnerArea | |
| virtual | ~BattleSpawnerArea () |
| void | InitArea (uint width, uint height) |
| const uint & | GetWidth () const |
| const uint & | GetHeight () const |
Public Member Functions inherited from yap::MapArea | |
| virtual | ~MapArea () |
Public Member Functions inherited from yap::DynamicWorldObject | |
| virtual | ~DynamicWorldObject () |
| const ID & | GetWorldID () const |
| void | SetWorldID (const ID &id) |
| const ID & | GetTypeID () const |
| Returns the ID of this type from the ObjectFactory. | |
| const Vector2 & | GetMaxVelocity () const |
| void | SetMaxVelocity (const Vector2 &maxVelocity) |
| void | SetPhysicsCore (PhysicsCore *physicsCore) |
| void | ApplyForce (const Vector2 &force) |
| const Vector2 & | GetMove () const |
| void | RawSetVelocity (const Vector2 &velocity) |
| const String & | GetState () const |
| const String & | GetLogicalState () const |
| bool | TryChangeState (const String &state) |
| void | SetInactive () |
| void | RawSetState (const String &state) |
| Directly changes this DynamicWorldObject state. Used for synchronizing the attribut. | |
| bool | IsActive () const |
| bool | IsMoving () const |
| void | AddTriggerBoundingBox (BoundingBox *boundingBox) |
| void | AddEvent (MapEvent *event) |
| void | RemoveEvent (MapEvent *event) |
| void | GetEventsCollidingWith (const CollidableArea &collidableArea, MapEventQueue &events) const |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::WorldObject | |
| virtual | ~WorldObject () |
| const ID & | GetID () const |
| void | SetID (const ID &id) |
| void | SetCollidableArea (CollidableArea *collidableArea) |
| void | AddPhysicsBoundingBox (BoundingBox *boundingBox) |
| void | RemovePhysicsBoundingBox (BoundingBox *boundingBox) |
| bool | CollidesWith (const CollidableArea &collidableArea, const Vector2 &offset) const |
| void | AdjustCollidablePosition (ICollidable &collidable) const |
| Moves the ICollidable collidable to this WorldObject position. To call once when adding the ICollidable to this WorldObject. | |
| virtual const Vector2 & | GetPosition () const |
| Gets the coordinates in pixels of the origin of this ISpatial from the global origin. | |
| virtual const Vector2 & | GetSize () const |
| Gets the size in pixels of this ISpatial. | |
| virtual const Vector2 & | GetTopLeft () const |
| virtual const Vector2 & | GetBottomRight () const |
| virtual const Vector2 & | GetCenter () const |
| virtual const FloatRect & | GetRectangle () const |
| virtual void | Move (const Vector2 &offset) |
| virtual void | Scale (const Vector2 &factor) |
| virtual void | SetPosition (const Vector2 &position) |
| virtual void | SetSize (const Vector2 &size) |
| virtual const int & | GetZ () const |
| Gets the highness of this ISpatial3. | |
| virtual void | SetZ (int z) |
| Sets the highness of this ISpatial3. | |
| virtual const int & | GetH () const |
| Gets the height of this ISpatial3. | |
| virtual void | SetH (int h) |
| Sets the height of this ISpatial3. | |
| virtual bool | CollidesWith (const ICollidable &other) const |
| virtual bool | CollidesWith (const ICollidable &other, const Vector2 &offset) const |
Public Member Functions inherited from yap::ICollidable | |
| virtual | ~ICollidable () |
Public Member Functions inherited from yap::ISpatial3 | |
| virtual | ~ISpatial3 () |
Public Member Functions inherited from yap::ISpatial | |
| virtual | ~ISpatial () |
Public Member Functions inherited from yap::IIDLoadable | |
| virtual | ~IIDLoadable () |
Public Member Functions inherited from yap::ICloneable | |
| virtual | ~ICloneable () |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::IDrawableDynamicWorldObject | |
| virtual | ~IDrawableDynamicWorldObject () |
Public Member Functions inherited from yap::IDrawableWorldObject | |
| virtual | ~IDrawableWorldObject () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Attributes | |
| yap::Event < IDrawableDynamicWorldObject &, const yap::Vector2 & > | OnOrderStateChanged |
Protected Member Functions | |
| OpenBattleSpawnerArea (const OpenBattleSpawnerArea ©) | |
| virtual void | HandleInitArea (yap::uint width, yap::uint height) |
| virtual const yap::String & | GetObjectFactoryTypeName () const |
| virtual void | HandleUpdate (const yap::Time &dt) |
| virtual void | HandleMove (const yap::Vector2 &offset) |
| virtual void | HandleDraw (yap::IDrawingContext &context) |
| virtual void | HandleShow (bool isVisible) |
| virtual void | HandleChangeColor (const sf::Color &color) |
| virtual float | HandleGetComparisonPoint () const |
| virtual int | HandleGetLayerDepth () const |
| virtual void | HandleChangeWorldDrawingPolicy (const yap::IWorldDrawingPolicy &worldDrawingPolicy) |
Protected Member Functions inherited from yap::OpenBattleSpawnerArea | |
| OpenBattleSpawnerArea (const OpenBattleSpawnerArea ©) | |
| virtual void | HandleSetArea (const FloatRect &area) |
Protected Member Functions inherited from yap::BattleSpawnerArea | |
| BattleSpawnerArea (const ID &id) | |
| BattleSpawnerArea (const BattleSpawnerArea ©) | |
| void | SetBattleSpawningArea (const FloatRect &battleSpawningArea) |
| virtual void | HandleInitArea (uint width, uint height) |
Protected Member Functions inherited from yap::MapArea | |
| MapArea (const ID &id) | |
| MapArea (const MapArea ©) | |
| void | SetArea (const FloatRect &area) |
Protected Member Functions inherited from yap::DynamicWorldObject | |
| DynamicWorldObject (const ID &id) | |
| DynamicWorldObject (const DynamicWorldObject ©) | |
| virtual void | HandleSetWorldID (const ID &worldID) |
| virtual void | HandleSetCollidableArea (CollidableArea *collidableArea) |
| virtual void | HandleApplyForce (const Vector2 &force) |
| virtual void | HandleSetState (const String &state) |
| virtual void | HandleScale (const Vector2 &factor) |
| virtual void | HandleSetZ (int z) |
| virtual void | HandleSetH (int h) |
| virtual void | HandleOnVelocityChanged (const Vector2 &oldVelocity, const Vector2 ¤tVelocity) |
Protected Member Functions inherited from yap::WorldObject | |
| WorldObject (const ID &id) | |
| WorldObject (const WorldObject ©) | |
| const PhysicsBoundingBoxCollection & | GetPhysicsBoundingBoxes () const |
| virtual Vector2 | HandleGetSize () const |
Private Member Functions | |
| DISALLOW_ASSIGN (OpenBattleSpawnerArea) | |
| void | AddSprite (yap::uint x, yap::uint y, yap::ISprite *sprite) |
Private Attributes | |
| bool | isVisible_ |
| sf::Color | color_ |
| const yap::IWorldDrawingPolicy * | worldDrawingPolicy_ |
| yap::ISprite * | baseSprite_ |
| yap::collection::List < yap::ISprite * > | sprites_ |
Static Private Attributes | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
| static const sf::Color | DEFAULT_COLOR = sf::Color () |
| static const int | DEFAULT_LAYER_DEPTH = 0 |
| static const yap::String | OBJECT_FACTORY_TYPE_NAME = "OpenBattleSpawnerArea" |
Definition at line 15 of file OpenBattleSpawnerArea.hpp.
|
explicit |
Reimplemented from yap::OpenBattleSpawnerArea.
Definition at line 15 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Reimplemented from yap::OpenBattleSpawnerArea.
Definition at line 25 of file OpenBattleSpawnerArea.cpp.
|
protected |
|
private |
Definition at line 172 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 77 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Changes the way that instance of IDrawableWorldObject is represented on the screen from its world position.
| New | IWorldDrawingPolicy to be applied. |
Implements yap::IDrawableWorldObject.
Definition at line 94 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Reimplemented from yap::OpenBattleSpawnerArea.
Definition at line 47 of file OpenBattleSpawnerArea.cpp.
|
private |
|
virtual |
Implements yap::IDrawable.
Definition at line 57 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Specifies the point from which to make comparison.
Implements yap::IDrawableWorldObject.
Definition at line 84 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Specifies the layer depth whose this IDrawableWorldObject belongs to. The layer depth is a prioritary factor for drawing order.
Implements yap::IDrawableWorldObject.
Definition at line 89 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Reimplemented from yap::OpenBattleSpawnerArea.
Definition at line 120 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 151 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 167 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 141 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 157 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 162 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Reimplemented from yap::DynamicWorldObject.
Definition at line 133 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Definition at line 147 of file OpenBattleSpawnerArea.cpp.
|
protectedvirtual |
Reimplemented from yap::DynamicWorldObject.
Definition at line 125 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 65 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Implements yap::IDrawableDynamicWorldObject.
Definition at line 104 of file OpenBattleSpawnerArea.cpp.
| void ycl::OpenBattleSpawnerArea::SetBaseSprite | ( | yap::ISprite * | baseSprite | ) |
Definition at line 52 of file OpenBattleSpawnerArea.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 70 of file OpenBattleSpawnerArea.cpp.
|
private |
Definition at line 103 of file OpenBattleSpawnerArea.hpp.
|
private |
Definition at line 99 of file OpenBattleSpawnerArea.hpp.
|
staticprivate |
Definition at line 92 of file OpenBattleSpawnerArea.hpp.
|
staticprivate |
Definition at line 94 of file OpenBattleSpawnerArea.hpp.
|
staticprivate |
Definition at line 91 of file OpenBattleSpawnerArea.hpp.
|
private |
Definition at line 98 of file OpenBattleSpawnerArea.hpp.
|
staticprivate |
Reimplemented from yap::OpenBattleSpawnerArea.
Definition at line 96 of file OpenBattleSpawnerArea.hpp.
| yap::Event< IDrawableDynamicWorldObject&, const yap::Vector2&> ycl::OpenBattleSpawnerArea::OnOrderStateChanged |
Definition at line 61 of file OpenBattleSpawnerArea.hpp.
|
private |
Definition at line 104 of file OpenBattleSpawnerArea.hpp.
|
private |
Definition at line 101 of file OpenBattleSpawnerArea.hpp.