Logo Search packages:      
Sourcecode: balder2d version File versions  Download package

Balder::PowerUp Class Reference

#include <powerup.h>

Inheritance diagram for Balder::PowerUp:

List of all members.

Detailed Description

Represents various powerups that players can collect

Bjorn Hansen

Definition at line 31 of file powerup.h.

Public Member Functions

bool Collide (Entity *)
virtual void Die ()
virtual void DrawOnto (SDL_Surface *)
int getEffect ()
SDL_Rect * GetFrame ()
int GetHeight ()
virtual const player_id GetOwner () const
const std::string GetType () const
int GetWidth ()
const int GetX () const
const double GetXPosition () const
const double GetXVelocity () const
const int GetY () const
const double GetYPosition () const
const double GetYVelocity () const
virtual const bool IsDead () const
virtual void Move ()
 PowerUp (GameManager *, double x_position, double y_position, double x_velocity, double y_velocity, int effect=1)
void SetCollisionMask (CollisionMask *)

Protected Member Functions

void Bounce (double x, double y)

Protected Attributes

SDL_Rect bounding_box
CollisionMask * collision_mask
GameManager * game_manager
const int height
bool is_dead
const int width
double x_position
double x_velocity
double y_position
double y_velocity

Private Attributes

int effect

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index