mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
#ifndef __PREBATTLE_INTERFACE_H
|
||||
#define __PREBATTLE_INTERFACE_H
|
||||
|
||||
#include "types.h"
|
||||
#include "Strategic Movement.h"
|
||||
|
||||
void InitPreBattleInterface( GROUP *pBattleGroup, BOOLEAN fPersistantPBI );
|
||||
void KillPreBattleInterface();
|
||||
void RenderPreBattleInterface();
|
||||
|
||||
extern BOOLEAN gfPreBattleInterfaceActive;
|
||||
extern BOOLEAN gfDisplayPotentialRetreatPaths;
|
||||
extern BOOLEAN gfAutomaticallyStartAutoResolve;
|
||||
extern BOOLEAN fDisableMapInterfaceDueToBattle;
|
||||
|
||||
extern GROUP *gpBattleGroup;
|
||||
|
||||
extern BOOLEAN gfTacticalTraversal;
|
||||
extern GROUP *gpTacticalTraversalGroup;
|
||||
extern SOLDIERTYPE *gpTacticalTraversalChosenSoldier;
|
||||
|
||||
extern BOOLEAN gfGotoSectorTransition;
|
||||
extern BOOLEAN gfEnteringMapScreenToEnterPreBattleInterface;
|
||||
|
||||
enum
|
||||
{
|
||||
//General encounter codes (gubEnemyEncounterCode)
|
||||
NO_ENCOUNTER_CODE, //when there is no encounter
|
||||
ENEMY_INVASION_CODE,
|
||||
ENEMY_ENCOUNTER_CODE,
|
||||
ENEMY_AMBUSH_CODE,
|
||||
ENTERING_ENEMY_SECTOR_CODE,
|
||||
CREATURE_ATTACK_CODE,
|
||||
|
||||
BLOODCAT_AMBUSH_CODE,
|
||||
ENTERING_BLOODCAT_LAIR_CODE,
|
||||
|
||||
//Explicit encounter codes only (gubExplicitEnemyEncounterCode -- a superset of gubEnemyEncounterCode)
|
||||
FIGHTING_CREATURES_CODE,
|
||||
HOSTILE_CIVILIANS_CODE,
|
||||
HOSTILE_BLOODCATS_CODE,
|
||||
};
|
||||
|
||||
extern BOOLEAN gfAutoAmbush;
|
||||
extern BOOLEAN gfHighPotentialForAmbush;
|
||||
|
||||
extern void ActivatePreBattleAutoresolveAction();
|
||||
extern void ActivatePreBattleEnterSectorAction();
|
||||
extern void ActivatePreBattleRetreatAction();
|
||||
extern void ActivateAutomaticAutoResolveStart();
|
||||
|
||||
void CalculateNonPersistantPBIInfo();
|
||||
void ClearNonPersistantPBIInfo();
|
||||
|
||||
//SAVE START
|
||||
|
||||
//Using the ESC key in the PBI will get rid of the PBI and go back to mapscreen, but
|
||||
//only if the PBI isn't persistant (!gfPersistantPBI).
|
||||
extern BOOLEAN gfPersistantPBI;
|
||||
|
||||
//Contains general information about the type of encounter the player is faced with. This
|
||||
//determines whether or not you can autoresolve the battle or even retreat. This code
|
||||
//dictates the header that is used at the top of the PBI.
|
||||
extern UINT8 gubEnemyEncounterCode;
|
||||
|
||||
//The autoresolve during tactical battle option needs more detailed information than the
|
||||
//gubEnemyEncounterCode can provide. The explicit version contains possibly unique codes
|
||||
//for reasons not normally used in the PBI. For example, if we were fighting the enemy
|
||||
//in a normal situation, then shot at a civilian, the civilians associated with the victim
|
||||
//would turn hostile, which would disable the ability to autoresolve the battle.
|
||||
extern BOOLEAN gubExplicitEnemyEncounterCode;
|
||||
|
||||
//Location of the current battle (determines where the animated icon is blitted) and if the
|
||||
//icon is to be blitted.
|
||||
extern BOOLEAN gfBlitBattleSectorLocator;
|
||||
|
||||
extern UINT8 gubPBSectorX;
|
||||
extern UINT8 gubPBSectorY;
|
||||
extern UINT8 gubPBSectorZ;
|
||||
|
||||
extern BOOLEAN gfCantRetreatInPBI;
|
||||
//SAVE END
|
||||
|
||||
void WakeUpAllMercsInSectorUnderAttack( void );
|
||||
|
||||
void ClearMovementForAllInvolvedPlayerGroups( void );
|
||||
void RetreatAllInvolvedPlayerGroups( void );
|
||||
|
||||
BOOLEAN PlayerGroupInvolvedInThisCombat( GROUP *pGroup );
|
||||
BOOLEAN PlayerMercInvolvedInThisCombat( SOLDIERTYPE *pSoldier );
|
||||
|
||||
BOOLEAN CurrentBattleSectorIs( INT16 sSectorX, INT16 sSectorY, INT16 sSectorZ );
|
||||
|
||||
enum
|
||||
{
|
||||
LOG_DEFEAT,
|
||||
LOG_VICTORY,
|
||||
};
|
||||
void LogBattleResults( UINT8 ubVictoryCode);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user