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

#include <TextureManager.hpp>

Inheritance diagram for yap::TextureManager:
Collaboration diagram for yap::TextureManager:

List of all members.

Public Member Functions

 TextureManager ()
 TextureManager (Texture &baseTexture, uint width, uint height)
 ~TextureManager ()
void Init ()
void UpdatePosition ()
virtual void Draw (IDrawingContext &context)
virtual bool IsVisible () const
virtual void Show (bool isVisible)
virtual void ChangeColor (const sf::Color &color)
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 sf::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)
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()
- Public Member Functions inherited from yap::ISpatial
virtual ~ISpatial ()

Private Member Functions

void GetLimits (int &width, int &height)

Private Attributes

SpatialInfo spatialInfo_
bool isEnable_
sf::Color color_
collection::Array< Texture * > textures_
bool isVisble_
uint width_
uint height_
TexturebaseTexture_

Detailed Description

Definition at line 16 of file TextureManager.hpp.


Constructor & Destructor Documentation

yap::TextureManager::TextureManager ( )

Definition at line 9 of file TextureManager.cpp.

yap::TextureManager::TextureManager ( Texture baseTexture,
uint  width,
uint  height 
)

Definition at line 13 of file TextureManager.cpp.

Here is the call graph for this function:

yap::TextureManager::~TextureManager ( )

Definition at line 94 of file TextureManager.cpp.


Member Function Documentation

void yap::TextureManager::ChangeColor ( const sf::Color &  color)
virtual

Implements yap::IDrawable.

Definition at line 197 of file TextureManager.cpp.

Here is the caller graph for this function:

void yap::TextureManager::Draw ( IDrawingContext context)
virtual

Implements yap::IDrawable.

Definition at line 171 of file TextureManager.cpp.

Here is the caller graph for this function:

const Vector2 & yap::TextureManager::GetBottomRight ( ) const
virtual

Implements yap::ISpatial.

Definition at line 117 of file TextureManager.cpp.

Here is the call graph for this function:

const Vector2 & yap::TextureManager::GetCenter ( ) const
virtual

Implements yap::ISpatial.

Definition at line 122 of file TextureManager.cpp.

Here is the call graph for this function:

void yap::TextureManager::GetLimits ( int &  width,
int &  height 
)
private

Definition at line 26 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector2 & yap::TextureManager::GetPosition ( ) const
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.

Implements yap::ISpatial.

Definition at line 98 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const sf::FloatRect & yap::TextureManager::GetRectangle ( ) const
virtual

Implements yap::ISpatial.

Definition at line 127 of file TextureManager.cpp.

Here is the call graph for this function:

const Vector2 & yap::TextureManager::GetSize ( ) const
virtual

Gets the size in pixels of this ISpatial.

Returns:
The size in pixels of this ISpatial.

Implements yap::ISpatial.

Definition at line 103 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector2 & yap::TextureManager::GetTopLeft ( ) const
virtual

Implements yap::ISpatial.

Definition at line 112 of file TextureManager.cpp.

Here is the call graph for this function:

void yap::TextureManager::Init ( )

Definition at line 42 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::TextureManager::IsVisible ( ) const
virtual

Implements yap::IDrawable.

Definition at line 182 of file TextureManager.cpp.

void yap::TextureManager::Move ( const Vector2 offset)
virtual

Implements yap::ISpatial.

Definition at line 132 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TextureManager::Scale ( const Vector2 factor)
virtual

Implements yap::ISpatial.

Definition at line 141 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TextureManager::SetPosition ( const Vector2 position)
virtual

Implements yap::ISpatial.

Definition at line 153 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TextureManager::SetSize ( const Vector2 size)
virtual

Implements yap::ISpatial.

Definition at line 158 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TextureManager::Show ( bool  isVisible)
virtual

Implements yap::IDrawable.

Definition at line 187 of file TextureManager.cpp.

void yap::TextureManager::UpdatePosition ( )

Definition at line 65 of file TextureManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Texture* yap::TextureManager::baseTexture_
private

Definition at line 57 of file TextureManager.hpp.

sf::Color yap::TextureManager::color_
private

Definition at line 52 of file TextureManager.hpp.

uint yap::TextureManager::height_
private

Definition at line 56 of file TextureManager.hpp.

bool yap::TextureManager::isEnable_
private

Definition at line 51 of file TextureManager.hpp.

bool yap::TextureManager::isVisble_
private

Definition at line 54 of file TextureManager.hpp.

SpatialInfo yap::TextureManager::spatialInfo_
mutableprivate

Definition at line 50 of file TextureManager.hpp.

collection::Array<Texture*> yap::TextureManager::textures_
private

Definition at line 53 of file TextureManager.hpp.

uint yap::TextureManager::width_
private

Definition at line 55 of file TextureManager.hpp.


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