#include <Person.h>
Inheritance diagram for Person:
Definition at line 10 of file Person.h.
|
Definition at line 44 of file Person.cpp. References Object::_box, Object::_collidable, _previousX, _previousY, and load(). |
|
Definition at line 30 of file Person.h. References _health. Referenced by AddHealthCommand::execute(). |
|
Definition at line 42 of file Person.h. References _yDirection. Referenced by AimCommand::execute(). |
|
Reimplemented from Object. Definition at line 132 of file Person.cpp. References Object::_box, _previousX, _previousY, Object::_type, _xVelocity, _yVelocity, DOOR, ENEMY, Object::getBox(), Object::getType(), glfuncs::intersectX(), glfuncs::intersectY(), PLAYER, and TILE. |
|
Make the person crouch Definition at line 352 of file Person.cpp. References Object::_box, _crouching, _sprite, and Sprite::setHeight(). Referenced by CrouchCommand::execute(). |
|
Schedules the calling object for deletion. Reimplemented in Enemy. Definition at line 376 of file Person.cpp. References Object::_collidable, Level::instance(), and Level::scheduleDelete(). Referenced by Enemy::die(), and update(). |
|
Implements Object. Definition at line 169 of file Person.cpp. References Object::_box, _sprite, _state, _xDirection, ShowOneSprite::draw(), FALLING, JUMPING, RUNNING, Sprite::setDirection(), ShowOneSprite::show(), and STANDING. |
|
Definition at line 270 of file Person.cpp. References _accel, _airAccel, and touchingBelow(). Referenced by MoveCommand::execute(). |
|
Definition at line 29 of file Person.h. References _health. Referenced by Level::drawHUD(). |
|
Definition at line 256 of file Person.cpp. References _maxFallRate, _maxXVel, _xVelocity, and _yVelocity. Referenced by MoveCommand::execute(), and update(). |
|
Definition at line 278 of file Person.cpp. References _jumpReset, _jumpTimer, _maxJumpTime, _maxXVel, _maxYVel, _prevXDirection, _wallJumpReset, _xDirection, _xVelocity, _yVelocity, LEFT, RIGHT, touchingBelow(), touchingLeft(), and touchingRight(). Referenced by JumpCommand::execute(). |
|
Definition at line 332 of file Person.cpp. References _jumpReset, _jumpTimer, _maxJumpTime, and _wallJumpReset. Referenced by JumpResetCommand::execute(). |
|
Reimplemented from Object. Reimplemented in Enemy. Definition at line 80 of file Person.cpp. References _accel, _airAccel, _airDrag, _bulletSpeed, _gravity, _groundDrag, _health, _maxFallRate, _maxJumpTime, _maxXVel, _maxYVel, _sprite, _waitShoot, List::empty(), List::firstList(), Sprite::loadSprite(), and List::rest(). Referenced by Person(). |
|
Definition at line 27 of file Person.h. References _xVelocity, and _yVelocity. Referenced by StopPersonCommand::execute(). |
|
Definition at line 38 of file Person.h. References _prevXDirection, and _xDirection. Referenced by TurnCommand::execute(), and MoveCommand::execute(). |
|
Definition at line 339 of file Person.cpp. References _bulletSpeed, _framesSinceShoot, _waitShoot, _xDirection, _yDirection, Level::instance(), and Level::registerObject(). Referenced by ShootCommand::execute(). |
|
Definition at line 383 of file Person.cpp. References Object::_box, and CollisionHandler::ObjsColliding(). Referenced by uncrouch(). |
|
Definition at line 390 of file Person.cpp. References Object::_box, and CollisionHandler::ObjsColliding(). Referenced by getAccel(), jump(), and update(). |
|
Definition at line 397 of file Person.cpp. References Object::_box, and CollisionHandler::ObjsColliding(). Referenced by jump(). |
|
Definition at line 404 of file Person.cpp. References Object::_box, and CollisionHandler::ObjsColliding(). Referenced by jump(). |
|
Uncrouches the person Definition at line 362 of file Person.cpp. References Object::_box, _crouching, _sprite, Sprite::setHeight(), and touchingAbove(). Referenced by CrouchCommand::execute(). |
|
Reimplemented from Object. Reimplemented in Enemy. Definition at line 195 of file Person.cpp. References _airDrag, Object::_box, _framesSinceShoot, _gravity, _groundDrag, _health, _previousX, _previousY, _state, _xVelocity, _yVelocity, CollisionHandler::checkCollision(), die(), FALLING, Screen::FRAMERATE, incrVelocity(), CollisionHandler::instance(), JUMPING, STANDING, and touchingBelow(). Referenced by Enemy::update(). |
|
Definition at line 81 of file Person.h. Referenced by getAccel(), and load(). |
|
Definition at line 82 of file Person.h. Referenced by getAccel(), and load(). |
|
|
|
|
|
Definition at line 66 of file Person.h. Referenced by Player::control(), crouch(), and uncrouch(). |
|
|
|
|
|
|
|
Definition at line 78 of file Person.h. Referenced by addHealth(), getHealth(), load(), and update(). |
|
Definition at line 91 of file Person.h. Referenced by jump(), and jumpReset(). |
|
Definition at line 89 of file Person.h. Referenced by jump(), and jumpReset(). |
|
Definition at line 56 of file Person.h. Referenced by incrVelocity(), and load(). |
|
Definition at line 90 of file Person.h. Referenced by jump(), jumpReset(), and load(). |
|
Definition at line 54 of file Person.h. Referenced by incrVelocity(), jump(), and load(). |
|
|
|
|
|
|
|
Definition at line 62 of file Person.h. Referenced by jump(), and setXDirection(). |
|
Definition at line 96 of file Person.h. Referenced by crouch(), draw(), load(), and uncrouch(). |
|
Definition at line 64 of file Person.h. Referenced by Player::control(), draw(), and update(). |
|
|
|
Definition at line 92 of file Person.h. Referenced by jump(), and jumpReset(). |
|
Definition at line 61 of file Person.h. Referenced by Player::control(), draw(), jump(), setXDirection(), and shoot(). |
|
Definition at line 52 of file Person.h. Referenced by collide(), incrVelocity(), jump(), setVelocity(), and update(). |
|
|
|
Definition at line 53 of file Person.h. Referenced by collide(), incrVelocity(), jump(), setVelocity(), and update(). |