![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
Common implementation of an ICamera. More...
#include <Camera.hpp>
Public Member Functions | |
| Camera (const Vector2 &position, const Vector2 &size) | |
| virtual | ~Camera () |
ISpatial members. | |
| 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 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) |
ICamera members. | |
| virtual bool | IsInView (const Vector2 &point) const |
| virtual bool | IsInView (const Vector2 &point, const Vector2 &size) const |
| virtual Vector2 | ToLocal (const Vector2 &globalPoint) const |
| virtual Vector2 | ToGlobal (const Vector2 &localPoint) const |
| virtual const sf::View & | GetInnerView () const |
| virtual Event< ICamera &, const Vector2 & > & | OnMovedEvent () const |
Public Member Functions inherited from yap::ICamera | |
| virtual | ~ICamera () |
Public Member Functions inherited from yap::ISpatial | |
| virtual | ~ISpatial () |
Public Attributes | |
| Event< ICamera &, const Vector2 & > | OnMoved |
Protected Member Functions | |
| virtual bool | HandleIsInView (const Vector2 &point, const Vector2 &size) const |
| virtual Vector2 | HandleToLocal (const Vector2 &globalPoint) const |
| virtual Vector2 | HandleToGlobal (const Vector2 &localPoint) const |
Private Member Functions | |
| DISALLOW_COPY (Camera) | |
Private Attributes | |
| SpatialInfo | spatialInfo_ |
| sf::View | view_ |
Common implementation of an ICamera.
Definition at line 13 of file Camera.hpp.
Definition at line 5 of file Camera.cpp.
|
virtual |
Definition at line 11 of file Camera.cpp.
|
private |
|
virtual |
Implements yap::ISpatial.
Definition at line 30 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 35 of file Camera.cpp.
|
virtual |
Implements yap::ICamera.
Definition at line 97 of file Camera.cpp.
|
virtual |
Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
Implements yap::ISpatial.
Definition at line 15 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 40 of file Camera.cpp.
|
virtual |
Gets the size in pixels of this ISpatial.
Implements yap::ISpatial.
Definition at line 20 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 25 of file Camera.cpp.
|
protectedvirtual |
Definition at line 107 of file Camera.cpp.
Definition at line 117 of file Camera.cpp.
Definition at line 112 of file Camera.cpp.
|
virtual |
Implements yap::ICamera.
Definition at line 77 of file Camera.cpp.
Implements yap::ICamera.
Definition at line 82 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 45 of file Camera.cpp.
Implements yap::ICamera.
Definition at line 102 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 54 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 64 of file Camera.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 69 of file Camera.cpp.
Implements yap::ICamera.
Definition at line 92 of file Camera.cpp.
Implements yap::ICamera.
Definition at line 87 of file Camera.cpp.
Definition at line 53 of file Camera.hpp.
|
private |
Definition at line 66 of file Camera.hpp.
|
private |
Definition at line 67 of file Camera.hpp.