Graphic Class Reference
[Toolkit classes]

The base class for any kind of graphical object. More...

#include <graphic.h>

Inherited by Animation, AnimationSprite, Button, Draggable, GameSpot, Layer, LogicComponent, LogicToolboxGate, MemMessageBoard, RobotBoard, Sprite, Text, and TransparentSprite.

Collaboration diagram for Graphic:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void draw (BITMAP *canvas, Point offset)=0
 This is the main reason for this class.
void move (Point p)
 location += p
void move (int x, int y)
 location += (x, y)
void moveTo (Point p)
 location = p
void moveTo (int x, int y)
 location = (x, y)
int x ()
 The x-coordinate of this object.
int y ()
 The y-coordinate of this object.
Point loc ()
 The location of this object.
virtual ~Graphic ()

Protected Attributes

Point location
 The location of this object relative to the Layer it is contained in.


Detailed Description

The base class for any kind of graphical object.

Any class that inherits from Graphic must implement the draw() method.


Constructor & Destructor Documentation

virtual Graphic::~Graphic (  )  [inline, virtual]


Member Function Documentation

virtual void Graphic::draw ( BITMAP *  canvas,
Point  offset 
) [pure virtual]

Point Graphic::loc (  ) 

The location of this object.

void Graphic::move ( int  x,
int  y 
)

location += (x, y)

void Graphic::move ( Point  p  ) 

location += p

void Graphic::moveTo ( int  x,
int  y 
)

location = (x, y)

void Graphic::moveTo ( Point  p  ) 

location = p

int Graphic::x (  ) 

The x-coordinate of this object.

int Graphic::y (  ) 

The y-coordinate of this object.


Member Data Documentation

Point Graphic::location [protected]

The location of this object relative to the Layer it is contained in.


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

Generated on Mon Mar 16 14:33:09 2009 for LearningGaming by  doxygen 1.5.7.1