![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <Teleporter.hpp>
Public Member Functions | |
| virtual | ~Teleporter () |
| virtual void | Accept (IDynamicWorldObjectVisitor &visitor) |
| virtual void | Accept (IDynamicWorldObjectConstVisitor &visitor) const |
| const ID & | GetMapWorldID () const |
| const Vector2 & | GetMapPoint () const |
| const FloatRect & | GetArea () const |
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 |
| 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 () |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Protected Member Functions | |
| Teleporter (const ID &id) | |
| Teleporter (const Teleporter ©) | |
| void | SetMapWorldID (const ID &mapWorldID) |
| void | SetMapPoint (const Vector2 &mapPoint) |
| void | SetArea (const FloatRect &area) |
Protected Member Functions inherited from yap::DynamicWorldObject | |
| DynamicWorldObject (const ID &id) | |
| DynamicWorldObject (const DynamicWorldObject ©) | |
| virtual const String & | GetObjectFactoryTypeName () 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 ¤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 (Teleporter) | |
Private Attributes | |
| ID | mapWorldID_ |
| Vector2 | mapPoint_ |
| FloatRect | area_ |
Static Private Attributes | |
| static const int | DEFAULT_AREA_Z = 0 |
| static const int | DEFAULT_AREA_H = 1 |
Additional Inherited Members | |
Public Attributes inherited from yap::DynamicWorldObject | |
| Event< DynamicWorldObject &, const Vector2 & > | OnMoved |
| Event< DynamicWorldObject &, const ChangeEventArgs < const Vector2 & > & > | OnVelocityChanged |
| Event< DynamicWorldObject &, const ChangeEventArgs < const String & > & > | OnStateChanged |
Static Public Attributes inherited from yap::DynamicWorldObject | |
| static const Vector2 | DEFAULT_MAX_VELOCITY |
Definition at line 11 of file Teleporter.hpp.
|
virtual |
Reimplemented in yse::Teleporter, and ycl::Teleporter.
Definition at line 21 of file Teleporter.cpp.
|
explicitprotected |
Reimplemented in yse::Teleporter, and ycl::Teleporter.
Definition at line 13 of file Teleporter.cpp.
|
protected |
Definition at line 25 of file Teleporter.cpp.
|
virtual |
Reimplemented from yap::DynamicWorldObject.
Definition at line 33 of file Teleporter.cpp.
|
virtual |
Reimplemented from yap::DynamicWorldObject.
Definition at line 40 of file Teleporter.cpp.
|
private |
| const FloatRect & yap::Teleporter::GetArea | ( | ) | const |
| const Vector2 & yap::Teleporter::GetMapPoint | ( | ) | const |
| const ID & yap::Teleporter::GetMapWorldID | ( | ) | const |
|
protected |
Definition at line 72 of file Teleporter.cpp.
|
protected |
|
protected |
|
private |
Definition at line 45 of file Teleporter.hpp.
|
staticprivate |
Definition at line 40 of file Teleporter.hpp.
|
staticprivate |
Definition at line 39 of file Teleporter.hpp.
|
private |
Definition at line 43 of file Teleporter.hpp.
|
private |
Definition at line 42 of file Teleporter.hpp.