MemRegister Class Reference
[Memory matching minigame]

#include <MemRegister.h>

Inherits Layer.

Collaboration diagram for MemRegister:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemRegister (int rSize, Point loc)
int getSize ()
int getData ()
 Returns the data.
int getDataColor ()
 Returns the color. Red is Stark, blue is Alice.
bool isSelected ()
 Returns true if the register is selected.
void select ()
 Selects the register.
void unselect ()
 Unselects the register.
void setData (int type, int color)
 Sets the data.
void setLocation (Point loc)
void setSize (int rSize)
void reset (int rSize, Point loc, int type, int color, Point offset)

Protected Attributes

int registerSize
bool selected
 Determines if the register is selected.
MemDatadata
 The data of the register.
Spritebackground


Detailed Description

A register that can be clicked on to revelar data.

Constructor & Destructor Documentation

MemRegister::MemRegister ( int  rSize,
Point  loc 
)


Member Function Documentation

int MemRegister::getData (  ) 

Returns the data.

int MemRegister::getDataColor (  ) 

Returns the color. Red is Stark, blue is Alice.

int MemRegister::getSize (  ) 

bool MemRegister::isSelected (  ) 

Returns true if the register is selected.

void MemRegister::reset ( int  rSize,
Point  loc,
int  type,
int  color,
Point  offset 
)

void MemRegister::select (  ) 

Selects the register.

void MemRegister::setData ( int  type,
int  color 
)

Sets the data.

void MemRegister::setLocation ( Point  loc  ) 

void MemRegister::setSize ( int  rSize  ) 

void MemRegister::unselect (  ) 

Unselects the register.


Member Data Documentation

MemData* MemRegister::data [protected]

The data of the register.

int MemRegister::registerSize [protected]

bool MemRegister::selected [protected]

Determines if the register is selected.


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