#include <Object.h>
Inheritance diagram for Object:

Public Member Functions | |
| Object () | |
| Object (List *objInfo, int x, int y) | |
| virtual SDL_Rect | getBox () | 
| virtual void | collide (Object *o) | 
| virtual void | draw ()=0 | 
| virtual void | update () | 
| virtual std::string | id () | 
| virtual void | setId (std::string id) | 
| virtual void | load (List *objInfo) | 
| virtual void | control () | 
| bool | collidable () | 
| void | setCollidable (bool b) | 
| double | getDepth () | 
| void | setDepth (double depth) | 
| CollisionType | getType () | 
| void | setType (CollisionType type) | 
Static Public Member Functions | |
| static Object * | loadObject (std::string filename, int x, int y) | 
Protected Attributes | |
| SDL_Rect | _box | 
| bool | _collidable | 
| double | _depth | 
| std::string | _id | 
| CollisionType | _type | 
Definition at line 13 of file Object.h.
      
  | 
  
| 
 
 Definition at line 10 of file Object.cpp.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 16 of file Object.cpp. References _box, _id, List::empty(), and List::firstList().  | 
  
      
  | 
  
| 
 
 Definition at line 33 of file Object.h. References _collidable. Referenced by CollisionHandler::ObjsColliding(), and Level::registerTile().  | 
  
      
  | 
  
| 
 
 Reimplemented in Bullet, CutScene, Door, EventPoint, Person, and Tile. Definition at line 19 of file Object.h. Referenced by CollisionHandler::checkCollision().  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
 Implemented in Bullet, Camera, CutScene, Door, EventPoint, Person, and Tile.  | 
  
      
  | 
  
| 
 
 Definition at line 18 of file Object.h. References _box. Referenced by Bullet::Bullet(), Person::collide(), ShootInRangeCommand::execute(), FollowPlayerInRangeCommand::execute(), FollowPlayerCommand::execute(), AimCommand::execute(), CollisionHandler::ObjsColliding(), and Screen::update().  | 
  
      
  | 
  
| 
 
 Definition at line 35 of file Object.h. References _depth. Referenced by Level::addObject(), and Level::registerTile().  | 
  
      
  | 
  
| 
 
 Definition at line 37 of file Object.h. References _type. Referenced by Person::collide(), EventPoint::collide(), Door::collide(), CutScene::collide(), and Bullet::collide().  | 
  
      
  | 
  
      
  | 
  
| 
 
 Reimplemented in CutScene, Door, Enemy, EventPoint, and Person. Definition at line 25 of file Object.h. Referenced by Level::levelSpecsLoad().  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 38 of file Object.cpp. References Parser::parse(), and List::rest(). Referenced by Level::levelObjectLoad().  | 
  
      
  | 
  
| 
 
 Definition at line 34 of file Object.h. References _collidable. Referenced by Level::levelTextureLoad().  | 
  
      
  | 
  
| 
 
 Definition at line 36 of file Object.h. References _depth. Referenced by Level::levelTextureLoad().  | 
  
      
  | 
  
| 
 
 Definition at line 23 of file Object.h. References _id.  | 
  
      
  | 
  
| 
 
 Definition at line 38 of file Object.h. References _type.  | 
  
      
  | 
  
| 
 
 Reimplemented in Bullet, CutScene, Door, Enemy, EventPoint, Person, and Tile.  | 
  
      
  | 
  
| 
 
 Definition at line 38 of file Object.h. Referenced by Bullet::Bullet(), Person::collide(), Person::crouch(), Tile::draw(), Person::draw(), EventPoint::draw(), Door::draw(), Bullet::draw(), getBox(), Object(), Person::Person(), Door::setOpen(), Tile::Tile(), Person::touchingAbove(), Person::touchingBelow(), Person::touchingLeft(), Person::touchingRight(), Person::uncrouch(), Person::update(), and Bullet::update().  | 
  
      
  | 
  
| 
 
 Definition at line 42 of file Object.h. Referenced by collidable(), Door::collide(), Bullet::collide(), Person::die(), EventPoint::EventPoint(), Person::Person(), setCollidable(), Door::setOpen(), and Tile::Tile().  | 
  
      
  | 
  
| 
 
 Definition at line 43 of file Object.h. Referenced by getDepth(), Player::Player(), setDepth(), and Tile::Tile().  | 
  
      
  | 
  
| 
 
 Definition at line 45 of file Object.h. Referenced by id(), Object(), CutScene::runScene(), setId(), and Tile::Tile().  | 
  
      
  | 
  
| 
 
 Definition at line 46 of file Object.h. Referenced by Bullet::Bullet(), Camera::Camera(), Person::collide(), CutScene::CutScene(), Door::Door(), Enemy::Enemy(), EventPoint::EventPoint(), getType(), Player::Player(), setType(), and Tile::Tile().  | 
  
 1.4.6-NO