RobotBox Class Reference
[Robot building minigame]

#include <RobotBox.h>

Inherits Sprite.

Collaboration diagram for RobotBox:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RobotBox (int type, Point place)
int getType ()
 Returns the type of the box (Action, Material, Color, Shape, or Part).
void setType (int type)
 Sets the type of the box.
void draw (BITMAP *canvas, Point offset)
 The basic draw() function.

Protected Member Functions

void setSprite ()

Protected Attributes

int boxType


Detailed Description

The boxes in the builder which take in the commands

Constructor & Destructor Documentation

RobotBox::RobotBox ( int  type,
Point  place 
)


Member Function Documentation

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

The basic draw() function.

This is literally

draw_sprite(canvas, sprite, (location + offset));

although the position has to be split back into x and y components.

Reimplemented from Sprite.

int RobotBox::getType (  ) 

Returns the type of the box (Action, Material, Color, Shape, or Part).

Reimplemented from Sprite.

void RobotBox::setSprite (  )  [protected]

void RobotBox::setType ( int  type  ) 

Sets the type of the box.


Member Data Documentation

int RobotBox::boxType [protected]


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

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