#include <CollisionHandler.h>
Public Member Functions | |
bool | checkCollision (Object *o) |
Static Public Member Functions | |
static CollisionHandler * | instance () |
static std::vector< Object * > | ObjsColliding (Object *o) |
Private Member Functions | |
CollisionHandler () | |
Private Attributes | |
Level * | _currentLevel |
Static Private Attributes | |
static CollisionHandler * | _instance = NULL |
Definition at line 10 of file CollisionHandler.h.
|
Definition at line 15 of file CollisionHandler.cpp. Referenced by instance(). |
|
Definition at line 27 of file CollisionHandler.cpp. References Object::collide(), and ObjsColliding(). Referenced by Person::update(), and Bullet::update(). |
|
Definition at line 20 of file CollisionHandler.cpp. References _instance, and CollisionHandler(). Referenced by Person::update(), and Bullet::update(). |
|
Definition at line 43 of file CollisionHandler.cpp. References Object::collidable(), Object::getBox(), Level::getObjects(), Level::getTile(), Level::instance(), Level::tileHeight, and Level::tileWidth. Referenced by checkCollision(), Person::touchingAbove(), Person::touchingBelow(), Person::touchingLeft(), and Person::touchingRight(). |
|
Definition at line 23 of file CollisionHandler.h. |
|
Definition at line 21 of file CollisionHandler.h. Referenced by instance(). |