Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Tutorial01Tile Class Reference

The class that holds all of the data related to the application. The main simply instances one of these classes and then executes it via the "go" method. More...

List of all members.

Public Member Functions

void go (void)
 Gets everything on the screen, and then goes to sleep, letting the interrupt handler update things appropriately.

void updateDisplay (void)
 Updates the display.


Static Public Member Functions

Tutorial01TiletheApp (void)
 Mechanism to get ahold of the application. This ensures that both main and the interrupt handler can gain access to the same application object without having to resort to global variables and other evilness.


Private Member Functions

 Tutorial01Tile ()
 Constructor prepares the application to run. To access an object, use theApp() to gain a reference to the application.

 Tutorial01Tile (const Tutorial01Tile &)
 Copy constructor is disabled.

Tutorial01Tileoperator= (const Tutorial01Tile &)
 Operator= is disabled.

virtual ~Tutorial01Tile ()
 Destructor never gets called because the application never ends.

void drawMap (u16 *map)
 Update the map to display the forest scene.


Detailed Description

The class that holds all of the data related to the application. The main simply instances one of these classes and then executes it via the "go" method.


Constructor & Destructor Documentation

Tutorial01Tile::Tutorial01Tile  )  [private]
 

Constructor prepares the application to run. To access an object, use theApp() to gain a reference to the application.

It does the following:

  • Initializes the internal class variables.
  • Initializes the palette to black. Not required, but makes viewing the palette in dualis easier.
  • Configures the various registers on the DS to initialize both displays in MODE_0_2D.
  • Finally, interrupts are enabled with the default

Tutorial01Tile::~Tutorial01Tile  )  [private, virtual]
 

Destructor never gets called because the application never ends.

end Tutorial01Tile::Tutorial01Tile


Member Function Documentation

Tutorial01Tile & Tutorial01Tile::theApp void   )  [static]
 

Mechanism to get ahold of the application. This ensures that both main and the interrupt handler can gain access to the same application object without having to resort to global variables and other evilness.

Return values:
A reference to the application object

void Tutorial01Tile::drawMap u16 map  )  [private]
 

Update the map to display the forest scene.

Parameters:
map The start of the map area for the screen to draw the forest scene.


The documentation for this class was generated from the following file:
Generated on Fri Apr 22 13:47:42 2005 for Tile01 Example Application by doxygen 1.3.6