Difference between revisions of "Script/Sector"
From SF3
(Created page with "==class Sector== Represents an RTS sector in the game world. === Class Methods === {| border='0' style ='border:solid 1px #eeeedd; color: black; width: 1200px;background-color...") |
|||
Line 1: | Line 1: | ||
==class Sector== | ==class Sector== | ||
Represents an RTS sector in the game world. | Represents an RTS sector in the game world. | ||
+ | |||
=== Class Methods === | === Class Methods === | ||
{| border='0' style ='border:solid 1px #eeeedd; color: black; width: 1200px;background-color: #ffffcc;' cellspacing='0' cellpadding='7' | {| border='0' style ='border:solid 1px #eeeedd; color: black; width: 1200px;background-color: #ffffcc;' cellspacing='0' cellpadding='7' |
Revision as of 09:01, 1 September 2016
class Sector
Represents an RTS sector in the game world.
Class Methods
LevelReference@ | GetLevel () |
get level in which the sector is located | |
uint | GetIndex () const |
get index of the sector | |
uint8 | GetOwner () const |
get current owner of the sector | |
void | SetOwner (const uint8 _Faction) |
set current owner of the sector | |
uint | GetBaseSupply () const |
get the supply (unit limit) provided by this sector | |
void | SetBaseSupply (const uint _uBaseSupply) |
set the supply (unit limit) provided by this sector | |
bool | IsBlocked () const |
check whether the sector can(not) be conquered | |
void | SetBlocked (const bool _bBlocked) |
set whether the sector is blocked from being conquered | |
Building | GetMainBuilding () const |
get current main building of the sector | |
uint | GetTotalResourceAmount () const |
get total amount of resources in this sector | |
uint | GetResourceAmount (const string&in _sType) const |
get amount of the given resource in this sector |