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

#include <SpatialInfo.hpp>

Inheritance diagram for yap::SpatialInfo:
Collaboration diagram for yap::SpatialInfo:

List of all members.

Public Member Functions

 SpatialInfo ()
 SpatialInfo (const Vector2 &position, const Vector2 &size)
 SpatialInfo (const SpatialInfo &copy)
SpatialInfooperator= (const SpatialInfo &copy)
const Vector2GetPosition () const
const Vector2GetSize () const
const Vector2GetTopLeft () const
const Vector2GetBottomRight () const
const Vector2GetCenter () const
const FloatRectGetRectangle () const
void SetPosition (const Vector2 &position)
void SetSize (const Vector2 &size)

Private Member Functions

void Init (const Vector2 &position, const Vector2 &size)
void Update ()

Private Attributes

Vector2 position_
Vector2 size_
Vector2 center_
Vector2 topLeft_
Vector2 bottomRight_
sf::FloatRect rectangle_

Detailed Description

Definition at line 11 of file SpatialInfo.hpp.


Constructor & Destructor Documentation

yap::SpatialInfo::SpatialInfo ( )

Definition at line 5 of file SpatialInfo.cpp.

Here is the call graph for this function:

yap::SpatialInfo::SpatialInfo ( const Vector2 position,
const Vector2 size 
)

Definition at line 10 of file SpatialInfo.cpp.

Here is the call graph for this function:

yap::SpatialInfo::SpatialInfo ( const SpatialInfo copy)

Definition at line 15 of file SpatialInfo.cpp.

Here is the call graph for this function:


Member Function Documentation

const Vector2 & yap::SpatialInfo::GetBottomRight ( ) const

Definition at line 45 of file SpatialInfo.cpp.

Here is the caller graph for this function:

const Vector2 & yap::SpatialInfo::GetCenter ( ) const

Definition at line 50 of file SpatialInfo.cpp.

Here is the caller graph for this function:

const Vector2 & yap::SpatialInfo::GetPosition ( ) const

Definition at line 30 of file SpatialInfo.cpp.

Here is the caller graph for this function:

const sf::FloatRect & yap::SpatialInfo::GetRectangle ( ) const

Definition at line 55 of file SpatialInfo.cpp.

Here is the caller graph for this function:

const Vector2 & yap::SpatialInfo::GetSize ( ) const

Definition at line 35 of file SpatialInfo.cpp.

Here is the caller graph for this function:

const Vector2 & yap::SpatialInfo::GetTopLeft ( ) const

Definition at line 40 of file SpatialInfo.cpp.

Here is the caller graph for this function:

void yap::SpatialInfo::Init ( const Vector2 position,
const Vector2 size 
)
private

Definition at line 74 of file SpatialInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

SpatialInfo & yap::SpatialInfo::operator= ( const SpatialInfo copy)

Definition at line 20 of file SpatialInfo.cpp.

Here is the call graph for this function:

void yap::SpatialInfo::SetPosition ( const Vector2 position)

Definition at line 60 of file SpatialInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::SpatialInfo::SetSize ( const Vector2 size)

Definition at line 67 of file SpatialInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::SpatialInfo::Update ( )
private

Definition at line 82 of file SpatialInfo.cpp.

Here is the caller graph for this function:


Member Data Documentation

Vector2 yap::SpatialInfo::bottomRight_
private

Definition at line 43 of file SpatialInfo.hpp.

Vector2 yap::SpatialInfo::center_
private

Definition at line 41 of file SpatialInfo.hpp.

Vector2 yap::SpatialInfo::position_
private

Definition at line 38 of file SpatialInfo.hpp.

sf::FloatRect yap::SpatialInfo::rectangle_
private

Definition at line 45 of file SpatialInfo.hpp.

Vector2 yap::SpatialInfo::size_
private

Definition at line 39 of file SpatialInfo.hpp.

Vector2 yap::SpatialInfo::topLeft_
private

Definition at line 42 of file SpatialInfo.hpp.


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