#include <wp_puck_proj.h>
Inherits massObject.
Inheritance diagram for wp_puck_proj:
Public Member Functions | |
wp_puck_proj (spriteManager *newsm, Player *p) | |
virtual | ~wp_puck_proj () |
virtual void | updateSprite () |
Updates the sprite to apply gravitational effects to it. | |
virtual void | collidingWith (spriteObject *other) |
When standing on another SpriteObject, flag this massObject as grounded and set its y velocity to 0. | |
Private Attributes | |
Player * | owner |
Definition at line 30 of file wp_puck_proj.h.
wp_puck_proj::wp_puck_proj | ( | spriteManager * | newsm, | |
Player * | p | |||
) |
Definition at line 27 of file wp_puck_proj.cpp.
References spriteObject::ANIMSPEED, spriteObject::COL_SOLID, spriteObject::giveSprite(), gameManager::pickupSprite, spriteObject::setAnim(), spriteObject::setBounds(), spriteObject::setCheckCollision(), spriteObject::setCollision(), spriteObject::setLayer(), spriteObject::setPallete(), and spriteObject::sm.
Here is the call graph for this function:
wp_puck_proj::~wp_puck_proj | ( | ) | [virtual] |
Definition at line 44 of file wp_puck_proj.cpp.
References spriteManager::createSingleFireSprite(), gameManager::FXSprite, spriteObject::getBottom(), spriteObject::getx(), Player::gm, spriteManager::isResetting(), gameManager::mineExp, owner, gameManager::player1, spriteObject::playSound(), spriteObject::sm, gameManager::spawnGFX, and spriteObject::TICKSPERFRAME.
Here is the call graph for this function:
void wp_puck_proj::updateSprite | ( | ) | [virtual] |
Updates the sprite to apply gravitational effects to it.
The sprite will accellerate downwards unless it lands on another baseable spriteObject.
Reimplemented from massObject.
Definition at line 59 of file wp_puck_proj.cpp.
References spriteManager::createSingleFireSprite(), spriteObject::destroy(), gameManager::FXSprite, spriteObject::getx(), Player::gm, massObject::isOnGround(), gameManager::MALLOWYPOS, owner, spriteObject::playSound(), spriteObject::SCREENH, spriteObject::sm, gameManager::smallSplash, spriteObject::TICKSPERFRAME, massObject::updateSprite(), spriteObject::vy, massObject::wasOnGround(), and spriteObject::y.
Here is the call graph for this function:
void wp_puck_proj::collidingWith | ( | spriteObject * | other | ) | [virtual] |
When standing on another SpriteObject, flag this massObject as grounded and set its y velocity to 0.
other | the spriteObject we are touching to be checked for standing on. |
Reimplemented from massObject.
Definition at line 85 of file wp_puck_proj.cpp.
References massObject::collidingWith(), spriteObject::destroy(), Player::gm, Player::hasShield(), spriteObject::isFacing(), gameManager::playerPucked(), and spriteObject::vx.
Here is the call graph for this function:
Player* wp_puck_proj::owner [private] |