41 static const int C4VP_DefViewRangeX = 300,
42 C4VP_DefMinViewRangeX = 150,
43 C4VP_DefMaxViewRangeX = 750;
45 static const int C4FOW_DefLightRangeX = 300,
46 C4FOW_DefLightFadeoutRangeX = 80;
50 class HostilitySet :
public std::set<const C4Player*>
163 void ScrollView(
float iX,
float iY,
float ViewWdt,
float ViewHgt);
173 bool Init(int32_t iNumber, int32_t iAtClient,
const char *szAtClientName,
const char *szFilename,
bool fScenarioInit,
class C4PlayerInfo *pInfo,
C4ValueNumbers *);
178 bool Save(
C4Group &hGroup,
bool fSavegame,
bool fStoreTiny);
180 bool Load(
const char *szFilename,
bool fSavegame);
181 static bool Strip(
const char *szFilename,
bool fAggressive);
182 bool Message(
const char *szMsg);
187 bool SetHostility(int32_t iOpponent, int32_t iHostility,
bool fSilent=
false);
197 void SetFoW(
bool fEnable);
237 void ExecMsgBoardQueries();
252 void SetZoomByViewRange(int32_t range_wdt, int32_t range_hgt,
bool direct,
bool no_increase,
bool no_decrease);
253 void SetMinZoomByViewRange(int32_t range_wdt, int32_t range_hgt,
bool no_increase,
bool no_decrease);
254 void SetMaxZoomByViewRange(int32_t range_wdt, int32_t range_hgt,
bool no_increase,
bool no_decrease);
255 void SetZoom(
C4Real zoom,
bool direct,
bool no_increase,
bool no_decrease);
258 void ZoomToViewports(
bool direct,
bool no_increase=
false,
bool no_decrease=
false);
264 bool AdjustZoomParameter(int32_t *range_par, int32_t new_val,
bool no_increase,
bool no_decrease);
265 bool AdjustZoomParameter(
C4Real *zoom_par,
C4Real new_val,
bool no_increase,
bool no_decrease);
272 bool GainScenarioAchievement(
const char *achievement_id, int32_t value,
const char *scen_name_override=
nullptr);
const int32_t C4PVM_Scrolling
const int32_t C4PVM_Cursor
const int32_t C4MaxPlayer
const int32_t C4P_Number_None
const int32_t C4PVM_Target
const int32_t C4MaxClient
void PlaceReadyBase(int32_t &tx, int32_t &ty, C4Object **pFirstBase)
void SetFoW(bool fEnable)
void PlaceReadyMaterial(int32_t tx1, int32_t tx2, int32_t ty, C4Object *FirstBase)
void DoTeamSelection(int32_t idTeam)
void CountControl(ControlType eType, int32_t iID, int32_t iCntAdd=1)
void ZoomLimitsToViewport(C4Viewport *vp)
bool Message(const char *szMsg)
C4ObjectInfoList CrewInfoList
void SetPlayerColor(uint32_t dwNewClr)
bool HasMessageBoardQuery()
void ZoomLimitsToViewports()
void SetMaxZoom(C4Real zoom, bool no_increase, bool no_decrease)
void EvaluateLeague(bool fDisconnected, bool fWon)
bool SetKnowledge(C4ID id, bool fRemove)
bool SetHostility(int32_t iOpponent, int32_t iHostility, bool fSilent=false)
static bool Strip(const char *szFilename, bool fAggressive)
bool GainScenarioAchievement(const char *achievement_id, int32_t value, const char *scen_name_override=nullptr)
void PlaceReadyCrew(int32_t tx1, int32_t tx2, int32_t ty, C4Object *FirstBase)
int32_t FindNewOwner() const
bool DoWealth(int32_t change)
void ExecBaseProduction()
int32_t ActiveCrewCount()
const char * GetName() const
bool LoadRuntimeData(C4Group &hGroup, C4ValueNumbers *)
bool SetWealth(int32_t val)
void CallMessageBoard(C4Object *pForObj, const StdStrBuf &sQueryString, bool fUppercase)
bool Load(const char *szFilename, bool fSavegame)
void PlaceReadyVehic(int32_t tx1, int32_t tx2, int32_t ty, C4Object *FirstBase)
void SetCursor(C4Object *pObj, bool fSelectArrow)
bool Init(int32_t iNumber, int32_t iAtClient, const char *szAtClientName, const char *szFilename, bool fScenarioInit, class C4PlayerInfo *pInfo, C4ValueNumbers *)
bool ScenarioAndTeamInit(int32_t idTeam)
bool ObjectInCrew(C4Object *tobj)
C4PlayerType GetType() const
void NotifyOwnedObjects()
bool IsHostileTowards(const C4Player *opponent) const
bool FinalInit(bool fInitialScore)
void SetZoom(C4Real zoom, bool direct, bool no_increase, bool no_decrease)
void AdjustCursorCommand()
void SetMinZoom(C4Real zoom, bool no_increase, bool no_decrease)
void ZoomToViewport(C4Viewport *vp, bool direct, bool no_increase=false, bool no_decrease=false)
void DrawHostility(C4Facet &cgo, int32_t iIndex)
void DefaultRuntimeData()
C4Object * GetHiExpActiveCrew()
void ToggleMouseControl()
void ZoomToViewports(bool direct, bool no_increase=false, bool no_decrease=false)
class C4TableGraph * pstatControls
void SetViewMode(int32_t iMode, C4Object *pTarget=nullptr, bool immediate_position=false)
void OnTeamSelectionFailed()
@ PS_TeamSelectionPending
class C4PlayerControlAssignmentSet * ControlSet
bool MakeCrewMember(C4Object *pObj, bool fForceInfo=true, bool fDoCalls=true)
bool IsChosingTeam() const
void CheckCrewExPromotion()
class C4MessageBoardQuery * pMsgBoardQuery
void SetMaxZoomByViewRange(int32_t range_wdt, int32_t range_hgt, bool no_increase, bool no_decrease)
void SetMinZoomByViewRange(int32_t range_wdt, int32_t range_hgt, bool no_increase, bool no_decrease)
ControlType LastControlType
void ResetCursorView(bool immediate_position=false)
char AtClientName[C4MaxTitle+1]
C4Object * GetHiRankActiveCrew()
void SetViewLocked(bool to_val)
void CompileFunc(StdCompiler *pComp, C4ValueNumbers *)
void SetZoomByViewRange(int32_t range_wdt, int32_t range_hgt, bool direct, bool no_increase, bool no_decrease)
int32_t GetSelectedCrewCount()
std::shared_ptr< class C4GamePadOpener > pGamepad
void DenumeratePointers()
bool SetObjectCrewStatus(C4Object *pCrew, bool fNewStatus)
class C4TableGraph * pstatActions
void SetSoundModifier(C4PropList *new_modifier)
bool IsViewLocked() const
bool RemoveMessageBoardQuery(C4Object *pForObj)
StdCopyStrBuf ControlSetName
bool MarkMessageBoardQueryAnswered(C4Object *pForObj)
class C4PlayerInfo * GetInfo()
char Filename[_MAX_PATH_LEN]
void ClearPointers(C4Object *tptr, bool fDeath)
void ScrollView(float iX, float iY, float ViewWdt, float ViewHgt)
bool ActivateMenuTeamSelection(bool fFromMain)
bool DoScore(int32_t iChange)
const char * getData() const