YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::ISpatial Struct Reference

Represents objects that evolve in the plan. More...

#include <ISpatial.hpp>

Inheritance diagram for yap::ISpatial:
Collaboration diagram for yap::ISpatial:

List of all members.

Public Member Functions

virtual ~ISpatial ()
virtual const Vector2GetPosition () const =0
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const =0
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const =0
virtual const Vector2GetBottomRight () const =0
virtual const Vector2GetCenter () const =0
virtual const sf::FloatRect & GetRectangle () const =0
virtual void Move (const Vector2 &offset)=0
virtual void Scale (const Vector2 &factor)=0
virtual void SetPosition (const Vector2 &position)=0
virtual void SetSize (const Vector2 &size)=0

Detailed Description

Represents objects that evolve in the plan.

Definition at line 12 of file ISpatial.hpp.


Constructor & Destructor Documentation

virtual yap::ISpatial::~ISpatial ( )
inlinevirtual

Definition at line 14 of file ISpatial.hpp.


Member Function Documentation

virtual const Vector2& yap::ISpatial::GetBottomRight ( ) const
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual const Vector2& yap::ISpatial::GetCenter ( ) const
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual const Vector2& yap::ISpatial::GetPosition ( ) const
pure virtual

Gets the coordinates in pixels of the origin of this ISpatial from the global origin.

Returns:
The coordinates in pixels of the origin of this ISpatial from the global origin.

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual const sf::FloatRect& yap::ISpatial::GetRectangle ( ) const
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual const Vector2& yap::ISpatial::GetSize ( ) const
pure virtual

Gets the size in pixels of this ISpatial.

Returns:
The size in pixels of this ISpatial.

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual const Vector2& yap::ISpatial::GetTopLeft ( ) const
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual void yap::ISpatial::Move ( const Vector2 offset)
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual void yap::ISpatial::Scale ( const Vector2 factor)
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual void yap::ISpatial::SetPosition ( const Vector2 position)
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:

virtual void yap::ISpatial::SetSize ( const Vector2 size)
pure virtual

Implemented in yap::BaseWidget, yap::WorldObject, yap::Tile, yap::Texture, yap::BoundingBoxCollection, yap::TextureManager, yap::BoundingBox, yap::Camera, and yap::BaseSprite.

Here is the caller graph for this function:


The documentation for this struct was generated from the following file: