Abstract class
Extendable
Category: Data
list<RESOURCE_QUANTITY_PAIR>
RESOURCE_COLLECTION_VALUE value
or list of RESOURCE_QUANTITY_PAIR values
boolean
boolean value
false
void initialize(mandateType)
Call after creation of your instance
Name | Type | Description |
---|---|---|
mandateType | MANDATE_TYPE |
void onStartClickCallback()
This is called when you click on the \'start\' button of the mandate in the Mandate Window
float getRemainingTime()
RESOURCE_COLLECTION_VALUE getCost()
void addMandateCostModifier(costMultiplicator)
Name | Type | Description |
---|---|---|
costMultiplicator | float |
void removeMandateCostModifier(costMultiplicator)
Name | Type | Description |
---|---|---|
costMultiplicator | float |
void addMandateTimeModifier(timeMultiplicator)
Name | Type | Description |
---|---|---|
timeMultiplicator | float |
void removeMandateTimeModifier(timeMultiplicator)
Name | Type | Description |
---|---|---|
timeMultiplicator | float |
void decreaseRemainingTime(deltaTime)
Name | Type | Description |
---|---|---|
deltaTime | float |
float getRemainingTimeRatio()
boolean isRequiringBailiff()
COMP_VILLAGER getAssignedVillager()
boolean isEnabled()
boolean isDisabled()
void setEnabled(isEnabled)
Name | Type | Description |
---|---|---|
isEnabled | boolean |
void addDelayBeforeEnabled(timeDelay [, disableMandate])
Name | Type | Description |
---|---|---|
timeDelay | float | |
disableMandate | boolean |
integer getDelayBeforeEnabledInDays()
Virtual function, Protected function
void completeMandate()
ON_MANDATE_STATE_CHANGED()
Call this event when you update your mandate. This will update the status string in the UI.