YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::BattleSpawnerArea Class Reference

#include <BattleSpawnerArea.hpp>

Inheritance diagram for yap::BattleSpawnerArea:
Collaboration diagram for yap::BattleSpawnerArea:

List of all members.

Public Member Functions

virtual ~BattleSpawnerArea ()
void InitArea (uint width, uint height)
const uintGetWidth () const
const uintGetHeight () const
- Public Member Functions inherited from yap::MapArea
virtual ~MapArea ()
- Public Member Functions inherited from yap::DynamicWorldObject
virtual ~DynamicWorldObject ()
virtual void Accept (IDynamicWorldObjectVisitor &visitor)
virtual void Accept (IDynamicWorldObjectConstVisitor &visitor) const
const IDGetWorldID () const
void SetWorldID (const ID &id)
const IDGetTypeID () const
 Returns the ID of this type from the ObjectFactory.
const Vector2GetMaxVelocity () const
void SetMaxVelocity (const Vector2 &maxVelocity)
void SetPhysicsCore (PhysicsCore *physicsCore)
void ApplyForce (const Vector2 &force)
const Vector2GetMove () const
void RawSetVelocity (const Vector2 &velocity)
const StringGetState () const
const StringGetLogicalState () 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 IDGetID () 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 Vector2GetPosition () const
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const
virtual const Vector2GetBottomRight () const
virtual const Vector2GetCenter () const
virtual const FloatRectGetRectangle () 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
virtual WorldObjectClone () 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 ()

Protected Member Functions

 BattleSpawnerArea (const ID &id)
 BattleSpawnerArea (const BattleSpawnerArea &copy)
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 &copy)
void SetArea (const FloatRect &area)
virtual void HandleSetArea (const FloatRect &area)
- Protected Member Functions inherited from yap::DynamicWorldObject
 DynamicWorldObject (const ID &id)
 DynamicWorldObject (const DynamicWorldObject &copy)
virtual const StringGetObjectFactoryTypeName () const =0
virtual void HandleSetWorldID (const ID &worldID)
virtual void HandleSetCollidableArea (CollidableArea *collidableArea)
virtual void HandleApplyForce (const Vector2 &force)
virtual void HandleUpdate (const Time &dt)
virtual void HandleSetState (const String &state)
virtual void HandleMove (const Vector2 &offset)
virtual void HandleScale (const Vector2 &factor)
virtual void HandleSetZ (int z)
virtual void HandleSetH (int h)
virtual void HandleOnVelocityChanged (const Vector2 &oldVelocity, const Vector2 &currentVelocity)
- Protected Member Functions inherited from yap::WorldObject
 WorldObject (const ID &id)
 WorldObject (const WorldObject &copy)
const
PhysicsBoundingBoxCollection
GetPhysicsBoundingBoxes () const
virtual Vector2 HandleGetSize () const

Static Protected Attributes

static const uint DEFAULT_CELL_SIZE = 32

Private Member Functions

 DISALLOW_ASSIGN (BattleSpawnerArea)
void InitBattleSpawningEvent (const FloatRect &battleSpawningArea)

Private Attributes

uint width_
uint height_
FloatRect battleSpawningArea_

Static Private Attributes

static const uint DEFAULT_WIDTH = 1
static const uint DEFAULT_HEIGHT = 1
static const int DEFAULT_BATTLE_SPAWNING_AREA_Z = 0
static const int DEFAULT_BATTLE_SPAWNING_AREA_H = 1

Detailed Description

Definition at line 9 of file BattleSpawnerArea.hpp.


Constructor & Destructor Documentation

yap::BattleSpawnerArea::~BattleSpawnerArea ( )
virtual

Definition at line 24 of file BattleSpawnerArea.cpp.

yap::BattleSpawnerArea::BattleSpawnerArea ( const ID id)
explicitprotected

Definition at line 16 of file BattleSpawnerArea.cpp.

yap::BattleSpawnerArea::BattleSpawnerArea ( const BattleSpawnerArea copy)
protected

Definition at line 28 of file BattleSpawnerArea.cpp.


Member Function Documentation

yap::BattleSpawnerArea::DISALLOW_ASSIGN ( BattleSpawnerArea  )
private
const uint & yap::BattleSpawnerArea::GetHeight ( ) const

Definition at line 57 of file BattleSpawnerArea.cpp.

Here is the caller graph for this function:

const uint & yap::BattleSpawnerArea::GetWidth ( ) const

Definition at line 52 of file BattleSpawnerArea.cpp.

Here is the caller graph for this function:

void yap::BattleSpawnerArea::HandleInitArea ( uint  width,
uint  height 
)
protectedvirtual

Definition at line 70 of file BattleSpawnerArea.cpp.

Here is the caller graph for this function:

void yap::BattleSpawnerArea::InitArea ( uint  width,
uint  height 
)

Definition at line 36 of file BattleSpawnerArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattleSpawnerArea::InitBattleSpawningEvent ( const FloatRect battleSpawningArea)
private

Definition at line 74 of file BattleSpawnerArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattleSpawnerArea::SetBattleSpawningArea ( const FloatRect battleSpawningArea)
protected

Definition at line 62 of file BattleSpawnerArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

FloatRect yap::BattleSpawnerArea::battleSpawningArea_
private

Definition at line 47 of file BattleSpawnerArea.hpp.

const int yap::BattleSpawnerArea::DEFAULT_BATTLE_SPAWNING_AREA_H = 1
staticprivate

Definition at line 42 of file BattleSpawnerArea.hpp.

const int yap::BattleSpawnerArea::DEFAULT_BATTLE_SPAWNING_AREA_Z = 0
staticprivate

Definition at line 41 of file BattleSpawnerArea.hpp.

const uint yap::BattleSpawnerArea::DEFAULT_CELL_SIZE = 32
staticprotected

Definition at line 32 of file BattleSpawnerArea.hpp.

const uint yap::BattleSpawnerArea::DEFAULT_HEIGHT = 1
staticprivate

Definition at line 39 of file BattleSpawnerArea.hpp.

const uint yap::BattleSpawnerArea::DEFAULT_WIDTH = 1
staticprivate

Definition at line 38 of file BattleSpawnerArea.hpp.

uint yap::BattleSpawnerArea::height_
private

Definition at line 45 of file BattleSpawnerArea.hpp.

uint yap::BattleSpawnerArea::width_
private

Definition at line 44 of file BattleSpawnerArea.hpp.


The documentation for this class was generated from the following files: