wp_puck_proj Class Reference

#include <wp_puck_proj.h>

Inherits massObject.

Inheritance diagram for wp_puck_proj:

Inheritance graph
[legend]
Collaboration diagram for wp_puck_proj:

Collaboration graph
[legend]
List of all members.

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

Playerowner

Detailed Description

Definition at line 30 of file wp_puck_proj.h.


Constructor & Destructor Documentation

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:


Member Function Documentation

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.

Parameters:
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:


Member Data Documentation

Player* wp_puck_proj::owner [private]

Definition at line 40 of file wp_puck_proj.h.

Referenced by updateSprite(), and ~wp_puck_proj().


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 23:27:56 2007 for MDuel DS by  doxygen 1.5.1-p1