MemData Class Reference
[Memory matching minigame]

#include <MemData.h>

Inherits Sprite.

Collaboration diagram for MemData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemData (int type, int color, Point point)
int getType ()
 Returns the type.
int getColor ()
 Returns the color.
void setColor (int color)
 Sets the color.
void setLocation (Point loc)
 Sets the location.
void setType (int type)
 Sets the type.
void draw (BITMAP *canvas, Point offset)
 The basic draw() function.

Protected Member Functions

void setSprite ()

Protected Attributes

int dataType
 The data type.
int dataColor
 The color. Red belongs to Stark, blue belongs to Alice.


Detailed Description

A sprite which contains the data of each register.

Constructor & Destructor Documentation

MemData::MemData ( int  type,
int  color,
Point  point 
)


Member Function Documentation

void MemData::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 MemData::getColor (  ) 

Returns the color.

int MemData::getType (  ) 

Returns the type.

Reimplemented from Sprite.

void MemData::setColor ( int  color  ) 

Sets the color.

void MemData::setLocation ( Point  loc  ) 

Sets the location.

void MemData::setSprite (  )  [protected]

void MemData::setType ( int  type  ) 

Sets the type.


Member Data Documentation

int MemData::dataColor [protected]

The color. Red belongs to Stark, blue belongs to Alice.

int MemData::dataType [protected]

The data type.


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

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