Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CMission Class Reference

#include <mission.h>

Inheritance diagram for CMission::

List of all members.

Public Methods

 CMission ()
int Load (char *szfilename)
void AddLevel (CLevel *pLevel)
CLevel* GetLevel (int i)
int NumLevels ()
void AddSpriteData (int iID, CSpriteData *pSprites)
CSpriteData* GetSpriteData (int iID)
int LoadSprites ()
int SaveSprites ()

Public Attributes

vector<CLevel * > m_apLevels
CSpriteData* m_apSpriteData [256]

Detailed Description

A "mission" consists of a set of levels to be played, it contains an array of CSpriteData's and the ID numbers (0-255?) associated with them. Each CSpriteData consists of a djImage, which is normally the .TGA file with all the sprites on them, as well as all the data associated with the sprite file. Each TGA is 256x128 (for historical reasons, it made sense back in the original DOS EGA version :) and thus each CSpriteData represents 128 16x16 sprites.


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

http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 15 Jul 2001