more gameserver support functions
This commit is contained in:
1 parent
74685ea66f
commit
836fdff772
2 files changed
+367
-6
No files matched your search
@@ -169,6 +169,11 @@ int techBaseCost(int nTech, int diff);
|
||||
// Sets a model's Flags (ZOC/civil/double-support) from its other fields.
|
||||
void setModelFlags(TModel &m);
|
||||
|
||||
// Computes Attack/Defense/Speed/Cost/Weight from a model's Cap[]/MStrength/
|
||||
// MCost fields (the "Create Development Model" calculator), then calls
|
||||
// setModelFlags().
|
||||
void calculateModel(TModel &m);
|
||||
|
||||
// Grants player p any SpecialModel[] not yet available that pre unlocks.
|
||||
void checkSpecialModels(int p, int pre);
|
||||
|
||||
@@ -259,6 +264,10 @@ bool checkShore(int loc);
|
||||
// clearing, automatic special resources, automatic shore tiles) and writes
|
||||
// the result to realMap.
|
||||
void editTile(int loc, std::uint32_t newTile);
|
||||
// Frees the supervisor's (player 0) map-editor-only Map/MapObservedLast/
|
||||
// Territory buffers (used for standalone map editing, without a full
|
||||
// initGame()).
|
||||
void releaseMapEditor();
|
||||
|
||||
// --- Territory Calculation ---
|
||||
|
||||
@@ -303,6 +312,11 @@ bool payPrice(int pSender, int pTarget, std::uint32_t price, bool execute);
|
||||
// treaty was just canceled (matches the original's `PeaceEnded` global).
|
||||
void cancelTreaty(int p, int pWith, bool decreaseCredibility = true);
|
||||
|
||||
// --- Test Flags ---
|
||||
|
||||
void clearTestFlags(int clearFlags);
|
||||
void setTestFlags(int p, int setFlags);
|
||||
|
||||
// --- Game Initialization ---
|
||||
|
||||
// Allocates and initializes every RW[p] array (Un/City/Model/Map/Territory/
|
||||
|
||||
Reference in new issue
Block a user