home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 March
/
Gamestar_82_2006-03_dvd.iso
/
DVDStar
/
Editace
/
quake4_sdkv10.exe
/
source
/
game
/
Instance.h
< prev
next >
Wrap
C/C++ Source or Header
|
2005-11-14
|
1KB
|
47 lines
//----------------------------------------------------------------
// Instance.h
//
// Copyright 2002-2005 Raven Software
//----------------------------------------------------------------
#ifndef __INSTANCE_H__
#define __INSTANCE_H__
#include "Game_local.h"
class rvInstance {
public:
rvInstance( int id, bool deferPopulate = false );
~rvInstance();
void Populate( void );
void PopulateFromMessage( const idBitMsg& msg );
void Restart( void );
void JoinInstance( idPlayer* player );
int GetInstanceID( void );
void SetSpawnInstanceID( int newInstance );
void PrintMapNumbers( void );
int GetNumMapEntities( void ) { return numMapEntities; }
unsigned short GetMapEntityNumber( int i ) { return mapEntityNumbers[ i ]; }
private:
void BuildInstanceMessage( void );
int instanceID;
int spawnInstanceID;
unsigned short* mapEntityNumbers;
int numMapEntities;
int initialSpawnCount;
idBitMsg mapEntityMsg;
byte mapEntityMsgBuf[ MAX_GAME_MESSAGE_SIZE ];
};
ID_INLINE int rvInstance::GetInstanceID( void ) {
return instanceID;
}
#endif