#include <Bullet.h>
Inheritance diagram for Bullet:
Public Member Functions | |
Bullet (Person *shooter, int bulletSpeed, xDirection xDir, yDirection yDir) | |
virtual void | draw () |
virtual void | update () |
virtual void | collide (Object *o) |
int | getDamage () |
Protected Attributes | |
Person * | _shooter |
Sprite * | _sprite |
int | _xVelocity |
int | _yVelocity |
int | _damage |
xDirection | _xDirection |
yDirection | _yDirection |
Definition at line 8 of file Bullet.h.
|
Definition at line 11 of file Bullet.cpp. References Object::_box, _shooter, _sprite, Object::_type, _xDirection, _xVelocity, _yDirection, _yVelocity, BULLET, DOWN, Object::getBox(), Sprite::height(), LEFT, Sprite::loadSprite(), MIDDLE, Sprite::setDirection(), UP, and Sprite::width(). |
|
Reimplemented from Object. Definition at line 91 of file Bullet.cpp. References Object::_collidable, _damage, _shooter, BULLET, ENEMY, Object::getType(), Level::instance(), PLAYER, and Level::scheduleDelete(). |
|
Implements Object. Definition at line 70 of file Bullet.cpp. References Object::_box, _sprite, _xDirection, Sprite::draw(), and Sprite::setDirection(). |
|
Definition at line 15 of file Bullet.h. References _damage. |
|
Reimplemented from Object. Definition at line 76 of file Bullet.cpp. References Object::_box, _xVelocity, _yVelocity, CollisionHandler::checkCollision(), Screen::FRAMERATE, Screen::getScreenRect(), Level::instance(), Screen::instance(), CollisionHandler::instance(), glfuncs::intersect(), and Level::scheduleDelete(). |
|
Definition at line 23 of file Bullet.h. Referenced by collide(), and getDamage(). |
|
|
|
|
|
|
|
|
|
Definition at line 25 of file Bullet.h. Referenced by Bullet(). |
|
|