mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
**********************************************************
** Big Maps Projects code (incl. Multiplayer v1.5 ** ********************************************************** - Merged Big Maps Project code from BMP+MP trunk (Revision: 3340) o Complete SVN Revision history: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - Before THIS merge, I made a branch of the existing 1.13 source o SVN Branch: https://81.169.133.124/source/ja2/branches/JA2_rev.3336/src - Removed old VS 6.0 and VS 2003 project and solutions files, because compilation is broken long time ago - I will add VS 2010 projects and solution file in the next few days git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3341 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -17,10 +17,11 @@ enum
|
||||
#define SMOKE_EFFECT_ON_ROOF 0x02
|
||||
#define SMOKE_EFFECT_MARK_FOR_UPDATE 0x04
|
||||
|
||||
#define NUM_SMOKE_EFFECT_SLOTS 25 // OJW - 20091027 - moved here to allow global access
|
||||
|
||||
typedef struct TAG_SMOKE_EFFECT
|
||||
{
|
||||
INT16 sGridNo; // gridno at which the tear gas cloud is centered
|
||||
INT32 sGridNo; // gridno at which the tear gas cloud is centered
|
||||
|
||||
UINT8 ubDuration; // the number of turns gas will remain effective
|
||||
UINT8 ubRadius; // the current radius of the cloud in map tiles
|
||||
@@ -32,24 +33,26 @@ typedef struct TAG_SMOKE_EFFECT
|
||||
UINT8 ubOwner;
|
||||
UINT8 ubPadding;
|
||||
UINT32 uiTimeOfLastUpdate;
|
||||
|
||||
INT8 iMPTeamIndex;
|
||||
INT32 iMPSmokeEffectID;
|
||||
} SMOKEEFFECT;
|
||||
|
||||
|
||||
extern SMOKEEFFECT gSmokeEffectData[ NUM_SMOKE_EFFECT_SLOTS ];
|
||||
extern UINT32 guiNumSmokeEffects;
|
||||
|
||||
// Returns NO_SMOKE_EFFECT if none there...
|
||||
INT8 GetSmokeEffectOnTile( INT16 sGridNo, INT8 bLevel );
|
||||
INT8 GetSmokeEffectOnTile( INT32 sGridNo, INT8 bLevel );
|
||||
|
||||
// Decays all smoke effects...
|
||||
void DecaySmokeEffects( UINT32 uiTime );
|
||||
|
||||
// Add smoke to gridno
|
||||
// ( Replacement algorithm uses distance away )
|
||||
void AddSmokeEffectToTile( INT32 iSmokeEffectID, INT8 bType, INT16 sGridNo, INT8 bLevel );
|
||||
void AddSmokeEffectToTile( INT32 iSmokeEffectID, INT8 bType, INT32 sGridNo, INT8 bLevel );
|
||||
|
||||
void RemoveSmokeEffectFromTile( INT16 sGridNo, INT8 bLevel );
|
||||
void RemoveSmokeEffectFromTile( INT32 sGridNo, INT8 bLevel );
|
||||
|
||||
INT32 NewSmokeEffect( INT16 sGridNo, UINT16 usItem, INT8 bLevel, UINT8 ubOwner );
|
||||
INT32 NewSmokeEffect( INT32 sGridNo, UINT16 usItem, INT8 bLevel, UINT8 ubOwner, BOOL fFromRemoteClient = 0 );
|
||||
|
||||
|
||||
BOOLEAN SaveSmokeEffectsToSaveGameFile( HWFILE hFile );
|
||||
|
||||
Reference in New Issue
Block a user