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

#include <ICollidable.hpp>

Inheritance diagram for yap::ICollidable:
Collaboration diagram for yap::ICollidable:

List of all members.

Public Member Functions

virtual ~ICollidable ()
virtual bool CollidesWith (const ICollidable &other) const =0
virtual bool CollidesWith (const ICollidable &other, const Vector2 &offset) const =0
- Public Member Functions inherited from yap::ISpatial3
virtual ~ISpatial3 ()
virtual const int & GetZ () const =0
 Gets the highness of this ISpatial3.
virtual void SetZ (int z)=0
 Sets the highness of this ISpatial3.
virtual const int & GetH () const =0
 Gets the height of this ISpatial3.
virtual void SetH (int h)=0
 Sets the height of this ISpatial3.
- Public Member Functions inherited from yap::ISpatial
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

Definition at line 9 of file ICollidable.hpp.


Constructor & Destructor Documentation

virtual yap::ICollidable::~ICollidable ( )
inlinevirtual

Definition at line 11 of file ICollidable.hpp.


Member Function Documentation

virtual bool yap::ICollidable::CollidesWith ( const ICollidable other) const
pure virtual

Implemented in yap::WorldObject, yap::BoundingBoxCollection, and yap::BoundingBox.

Here is the caller graph for this function:

virtual bool yap::ICollidable::CollidesWith ( const ICollidable other,
const Vector2 offset 
) const
pure virtual

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