![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <WorldObject.hpp>
Public Member Functions | |
| 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. | |
ISpatial members. | |
| 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) |
ISpatial3 members. | |
| 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. | |
ICollidable members. | |
| virtual bool | CollidesWith (const ICollidable &other) const |
| virtual bool | CollidesWith (const ICollidable &other, const Vector2 &offset) const |
ICloneable members. | |
| virtual WorldObject * | Clone () 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 () |
Protected Member Functions | |
| WorldObject (const ID &id) | |
| WorldObject (const WorldObject ©) | |
| const PhysicsBoundingBoxCollection & | GetPhysicsBoundingBoxes () const |
| virtual void | HandleSetCollidableArea (CollidableArea *collidableArea) |
| virtual Vector2 | HandleGetSize () const |
| virtual void | HandleMove (const Vector2 &offset) |
| virtual void | HandleScale (const Vector2 &factor) |
| virtual void | HandleSetZ (int z) |
| virtual void | HandleSetH (int h) |
Private Member Functions | |
| DISALLOW_ASSIGN (WorldObject) | |
Private Attributes | |
| ID | id_ |
| Spatial3Info | spatial3Info_ |
| PhysicsBoundingBoxCollection | physicsBoundingBoxes_ |
Definition at line 17 of file WorldObject.hpp.
|
virtual |
Definition at line 14 of file WorldObject.cpp.
|
explicitprotected |
Definition at line 7 of file WorldObject.cpp.
|
protected |
Definition at line 18 of file WorldObject.cpp.
| void yap::WorldObject::AddPhysicsBoundingBox | ( | BoundingBox * | boundingBox | ) |
Definition at line 42 of file WorldObject.cpp.
| void yap::WorldObject::AdjustCollidablePosition | ( | ICollidable & | collidable | ) | const |
Moves the ICollidable collidable to this WorldObject position. To call once when adding the ICollidable to this WorldObject.
| collidable | The ICollidable whose to adjust the position. |
Definition at line 177 of file WorldObject.cpp.
|
inlinevirtual |
Implements yap::ICloneable.
Reimplemented in yse::Player, ycl::MapElement, ycl::DestructibleObject, ycl::OpenBattleSpawnerArea, yap::DestructibleObject, yse::Teleporter, ycl::Teleporter, ycl::Player, yap::MapElement, yap::OpenBattleSpawnerArea, yse::NPC, and ycl::NPC.
Definition at line 80 of file WorldObject.hpp.
| bool yap::WorldObject::CollidesWith | ( | const CollidableArea & | collidableArea, |
| const Vector2 & | offset | ||
| ) | const |
Definition at line 54 of file WorldObject.cpp.
|
virtual |
Implements yap::ICollidable.
Definition at line 159 of file WorldObject.cpp.
|
virtual |
Implements yap::ICollidable.
Definition at line 164 of file WorldObject.cpp.
|
private |
|
virtual |
Implements yap::ISpatial.
Definition at line 78 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 86 of file WorldObject.cpp.
|
virtual |
Gets the height of this ISpatial3.
Implements yap::ISpatial3.
Definition at line 147 of file WorldObject.cpp.
| const ID & yap::WorldObject::GetID | ( | ) | const |
Definition at line 25 of file WorldObject.cpp.
|
protected |
Definition at line 172 of file WorldObject.cpp.
|
virtual |
Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
Implements yap::ISpatial.
Definition at line 61 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 94 of file WorldObject.cpp.
|
virtual |
Gets the size in pixels of this ISpatial.
Implements yap::ISpatial.
Definition at line 66 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 73 of file WorldObject.cpp.
|
virtual |
Gets the highness of this ISpatial3.
Implements yap::ISpatial3.
Definition at line 135 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in ycl::DestructibleObject, ycl::Character, and ycl::MapElement.
Definition at line 186 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in yap::DynamicWorldObject, ycl::DestructibleObject, ycl::OpenBattleSpawnerArea, ycl::Character, and ycl::MapElement.
Definition at line 191 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in yap::DynamicWorldObject.
Definition at line 196 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in yap::DynamicWorldObject.
Definition at line 182 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in yap::DynamicWorldObject.
Definition at line 206 of file WorldObject.cpp.
|
protectedvirtual |
Reimplemented in yap::DynamicWorldObject.
Definition at line 201 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 102 of file WorldObject.cpp.
| void yap::WorldObject::RemovePhysicsBoundingBox | ( | BoundingBox * | boundingBox | ) |
|
virtual |
Implements yap::ISpatial.
Definition at line 112 of file WorldObject.cpp.
| void yap::WorldObject::SetCollidableArea | ( | CollidableArea * | collidableArea | ) |
|
virtual |
Sets the height of this ISpatial3.
| h | Height of this ISpatial3. |
Implements yap::ISpatial3.
Definition at line 152 of file WorldObject.cpp.
| void yap::WorldObject::SetID | ( | const ID & | id | ) |
Definition at line 30 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 122 of file WorldObject.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 127 of file WorldObject.cpp.
|
virtual |
Sets the highness of this ISpatial3.
| z | Highness of this ISpatial3. |
Implements yap::ISpatial3.
Definition at line 140 of file WorldObject.cpp.
|
private |
Definition at line 100 of file WorldObject.hpp.
|
private |
Definition at line 104 of file WorldObject.hpp.
|
mutableprivate |
Definition at line 102 of file WorldObject.hpp.