#include <Tile.hpp>
List of all members.
Protected Member Functions |
| | Tile (const Tile ©) |
Detailed Description
Definition at line 21 of file Tile.hpp.
Constructor & Destructor Documentation
| yap::Tile::Tile |
( |
const ID & |
id | ) |
|
| yap::Tile::Tile |
( |
const Tile & |
copy | ) |
|
|
protected |
Member Function Documentation
| bool yap::Tile::BelongsTo |
( |
const TileFamily & |
family | ) |
const |
| void yap::Tile::ChangeColor |
( |
const sf::Color & |
color | ) |
|
|
virtual |
| Tile * yap::Tile::Clone |
( |
| ) |
const |
|
virtual |
| yap::Tile::DISALLOW_ASSIGN |
( |
Tile |
| ) |
|
|
private |
| const Vector2 & yap::Tile::GetBottomRight |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::Tile::GetCenter |
( |
| ) |
const |
|
virtual |
| const ID & yap::Tile::GetID |
( |
| ) |
const |
| const Vector2 & yap::Tile::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 66 of file Tile.cpp.
| const sf::FloatRect & yap::Tile::GetRectangle |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::Tile::GetSize |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::Tile::GetTopLeft |
( |
| ) |
const |
|
virtual |
| bool yap::Tile::IsVisible |
( |
| ) |
const |
|
virtual |
| void yap::Tile::Move |
( |
const Vector2 & |
offset | ) |
|
|
virtual |
| void yap::Tile::Scale |
( |
const Vector2 & |
factor | ) |
|
|
virtual |
| void yap::Tile::SetFamily |
( |
const TileFamily * |
family | ) |
|
| void yap::Tile::SetID |
( |
const ID & |
id | ) |
|
| void yap::Tile::SetPosition |
( |
const Vector2 & |
position | ) |
|
|
virtual |
| void yap::Tile::SetSize |
( |
const Vector2 & |
size | ) |
|
|
virtual |
| void yap::Tile::SetSprite |
( |
ISprite * |
sprite | ) |
|
| void yap::Tile::Show |
( |
bool |
isVisible | ) |
|
|
virtual |
| void yap::Tile::Update |
( |
const Time & |
dt | ) |
|
|
virtual |
Makes the object evolve for one frame of the game.
- Parameters:
-
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 149 of file Tile.cpp.
Member Data Documentation
| sf::Color yap::Tile::color_ |
|
private |
| const sf::Color yap::Tile::DEFAULT_COLOR = sf::Color () |
|
staticprivate |
| const UInt32 yap::Tile::DEFAULT_SIZE = 32 |
|
static |
| const bool yap::Tile::DEFAULT_VISIBLE_STATE = true |
|
staticprivate |
| bool yap::Tile::isVisible_ |
|
private |
The documentation for this class was generated from the following files:
- G:/YAPOG/YAPOG/YAPOG/include/YAPOG/Graphics/Game/World/Map/Tile.hpp
- G:/YAPOG/YAPOG/YAPOG/src/YAPOG/Graphics/Game/World/Map/Tile.cpp