GEJM  1.0.0.0
a 2D platformer made by students
Public Member Functions | List of all members
SolidObject Class Reference

#include <SolidObject.h>

Inheritance diagram for SolidObject:
Object Coin Creature Trigger MonsterCreature PlayerCreature

Public Member Functions

 SolidObject (double x=0.0, double y=0.0, double width=1.0, double height=1.0)
 
virtual ~SolidObject ()
 
- Public Member Functions inherited from Object
 Object (double x=0.0, double y=0.0, double width=1.0, double height=1.0)
 
virtual ~Object ()
 
virtual void savePrevious ()
 
void destroy ()
 
double getY () const
 
double getX () const
 
double getWidth () const
 
double getHeight () const
 
double getPrevX () const
 
double getPrevY () const
 
bool getDestroyed () const
 

Additional Inherited Members

- Protected Attributes inherited from Object
double x
 
double y
 
double width
 
double height
 
double prevX
 
double prevY
 
bool destroyed
 

Detailed Description

SolidObject is a base class for all collidable game objects.

Constructor & Destructor Documentation

SolidObject::SolidObject ( double  x = 0.0,
double  y = 0.0,
double  width = 1.0,
double  height = 1.0 
)

The default constructor of SolidObject.

Parameters
xX position of SolidObject. Defaults to 0.0
yY position of SolidObject. Defaults to 0.0
widthwidth of SolidObject. Defaults to 1.0
heightheight of SolidObject. Defaults to 1.0

SolidObject implementation The default constructor of SolidObject.

Parameters
xX position of SolidObject. Defaults to 0.0
yY position of SolidObject. Defaults to 0.0
widthwidth of SolidObject. Defaults to 1.0
heightheight of SolidObject. Defaults to 1.0
SolidObject::~SolidObject ( )
virtual

The default destructor.


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