Back to index

extremetuxracer  0.5beta
Public Types | Public Member Functions | Public Attributes | Private Attributes
Item Class Reference

#include <pp_classes.h>

Inheritance diagram for Item:
Inheritance graph
Collaboration diagram for Item:
Collaboration graph

List of all members.

Public Types


Public Member Functions

 Item ()
bool isDrawable ()
void setDrawable (const bool state=true)
int getScore ()
void setScore (const int score)
Type getType ()
void setType (Type type)
void setCollected (bool collected=true)
bool isCollected ()

Public Attributes

ray_t ray
double height
double diam
int type

Private Attributes

bool m_drawable
bool m_collected
Type m_type
int m_score

Detailed Description

Definition at line 37 of file pp_classes.h.

Member Enumeration Documentation

enum Item::Type

Definition at line 40 of file pp_classes.h.

Constructor & Destructor Documentation

Item::Item ( ) [inline]

Definition at line 53 of file pp_classes.h.


Member Function Documentation

int Item::getScore ( ) [inline]

Definition at line 58 of file pp_classes.h.

{return m_score;}

Here is the caller graph for this function:

Type Item::getType ( ) [inline]

Definition at line 61 of file pp_classes.h.

{return m_type;};
bool Item::isCollected ( ) [inline]

Definition at line 65 of file pp_classes.h.

{return m_collected;};
bool Item::isDrawable ( ) [inline]

Definition at line 55 of file pp_classes.h.

{ return m_drawable; };
void Item::setCollected ( bool  collected = true) [inline]

Definition at line 64 of file pp_classes.h.


Here is the caller graph for this function:

void Item::setDrawable ( const bool  state = true) [inline]

Definition at line 56 of file pp_classes.h.

{ m_drawable=state; };

Here is the caller graph for this function:

void Item::setScore ( const int  score) [inline]

Definition at line 59 of file pp_classes.h.


Here is the caller graph for this function:

void Item::setType ( Type  type) [inline]

Definition at line 62 of file pp_classes.h.

Here is the caller graph for this function:

Member Data Documentation

double BaseItem::diam [inherited]

Definition at line 33 of file pp_classes.h.

double BaseItem::height [inherited]

Definition at line 32 of file pp_classes.h.

bool Item::m_collected [private]

Definition at line 48 of file pp_classes.h.

bool Item::m_drawable [private]

Definition at line 47 of file pp_classes.h.

int Item::m_score [private]

Definition at line 50 of file pp_classes.h.

Type Item::m_type [private]

Definition at line 49 of file pp_classes.h.

ray_t BaseItem::ray [inherited]

Definition at line 31 of file pp_classes.h.

int BaseItem::type [inherited]

Definition at line 34 of file pp_classes.h.

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