19 #ifndef OPENXCOM_BATTLESCAPEGENERATOR_H
20 #define OPENXCOM_BATTLESCAPEGENERATOR_H
25 class SavedBattleGame;
37 class AlienDeployment;
59 int _mapsize_x, _mapsize_y, _mapsize_z;
60 int _worldTexture, _worldShade;
62 Tile *_craftInventoryTile;
63 std::string _alienRace;
65 bool _allowAutoLoadout, _baseInventory;
66 int _craftX, _craftY, _craftZ;
83 int loadMAP(
MapBlock *mapblock,
int xoff,
int yoff,
RuleTerrain *terrain,
int objectIDOffset,
bool discovered =
false,
bool craft =
false);
85 void loadRMP(
MapBlock *mapblock,
int xoff,
int yoff,
int segment);
87 void fuelPowerSources();
89 void explodePowerSources();
93 bool canPlaceXCOMUnit(
Tile *tile);
97 void deployCivilians(
int max);
void setWorldTexture(int texture)
Sets the polygon texture.
Definition: BattlescapeGenerator.cpp:111
~BattlescapeGenerator()
Cleans up the BattlescapeGenerator.
Definition: BattlescapeGenerator.cpp:82
Represents a craft stored in a base.
Definition: Craft.h:44
Represents a vehicle (tanks etc.) kept in a craft.
Definition: Vehicle.h:35
Represents an alien base on the world.
Definition: AlienBase.h:32
void runInventory(Craft *craft)
Generates an inventory battlescape.
Definition: BattlescapeGenerator.cpp:1896
void run()
Runs the generator.
Definition: BattlescapeGenerator.cpp:282
Represents a Terrain Map Block.
Definition: MapBlock.h:37
void setWorldShade(int shade)
Sets the polygon shade.
Definition: BattlescapeGenerator.cpp:121
void setUfo(Ufo *ufo)
Sets the ufo.
Definition: BattlescapeGenerator.cpp:101
Represents an alien terror site on the world.
Definition: TerrorSite.h:32
void setAlienItemlevel(int alienItemLevel)
Sets the alien item level.
Definition: BattlescapeGenerator.cpp:145
BattlescapeGenerator(Game *game)
Creates a new BattlescapeGenerator class.
Definition: BattlescapeGenerator.cpp:73
void setTerrorSite(TerrorSite *site)
Sets the terror site.
Definition: BattlescapeGenerator.cpp:164
Represents a single item in the battlescape.
Definition: BattleItem.h:39
void nextStage()
Sets up the next stage (for cydonia/tftd terror missions).
Definition: BattlescapeGenerator.cpp:174
Represents a specific race "family", or a "main race" if you wish.
Definition: AlienRace.h:35
void setAlienBase(AlienBase *base)
Sets the alien base.
Definition: BattlescapeGenerator.cpp:1833
A utility class that generates the initial battlescape data.
Definition: BattlescapeGenerator.h:47
Represents a player base on the globe.
Definition: Base.h:47
Basic element of which a battle map is build.
Definition: Tile.h:43
Packs of external game media.
Definition: ResourcePack.h:50
The battlescape data that gets written to disk when the game is saved.
Definition: SavedBattleGame.h:50
Represents an alien UFO on the map.
Definition: Ufo.h:41
bool placeUnitNearFriend(BattleUnit *unit)
Finds a spot near a friend to spawn at.
Definition: BattlescapeGenerator.cpp:1844
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Represents a specific type of Alien Deployment.
Definition: AlienDeployment.h:55
void setBase(Base *base)
Sets the XCom base.
Definition: BattlescapeGenerator.cpp:154
Represents a specific type of Battlescape Terrain.
Definition: RuleTerrain.h:41
void setAlienRace(const std::string &alienRace)
Sets the alien race.
Definition: BattlescapeGenerator.cpp:132
void setCraft(Craft *craft)
Sets the XCom craft.
Definition: BattlescapeGenerator.cpp:91
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:58
void loadWeapons()
Load all Xcom weapons.
Definition: BattlescapeGenerator.cpp:1926
Represents the static data for a unit that is generated on the battlescape, this includes: HWPs...
Definition: Unit.h:50