Entity types are abstract definitions of entities. More...
Public Member Functions | |
string | GetDescriptor (int count) |
Returns a text descriptor for a specified number of this entity type. | |
Faction | GetFaction () |
Looks up this entity type's faction. | |
List< UrgencyFunction > | GetUrgencyFunctions () |
Returns a list of urgency functions, including those inherited from parents. | |
DriveValue | LookupDriveValue (Drive drive) |
Looks up a drive value, first in the entity; failing that, checks parents. | |
float | GetRewardMultiplier (RewardMultiplier category) |
Returns the reward multiplier value for a specific category for this entity type. | |
Properties | |
string | description [get, set] |
Description of this entity type. | |
bool | isUnique [get, set] |
True if there is only one entity of this type. | |
StringField | displayName [get, set] |
The display name of this entity type. | |
StringField | pluralDisplayName [get, set] |
The plural display name for multiples of this entity type. | |
Sprite | image [get, set] |
The entity type's image may be shown in UIs. | |
int | level [get, set] |
The entity type's level, used to determine quest difficulty and rewards. | |
Faction | faction [get, set] |
The faction that this entity type belongs to. | |
List< EntityType > | parents [get, set] |
The entity type's parent types. | |
List< UrgencyFunction > | urgencyFunctions [get, set] |
Functions that quest generators use to determine how urgently they must generate a quest about this entity. | |
List< Action > | actions [get, set] |
Actions that can be performed on this entity type. | |
AnimationCurve | minCountInAction [get, set] |
When planning an action, set lower bound to this many targets. | |
AnimationCurve | maxCountInAction [get, set] |
When planning an action, limit to this many targets. | |
List< DriveValue > | originalDriveValues [get, set] |
The entity type's original drive values (not current runtime values). | |
List< DriveValue > | driveValues [get, set] |
This entity type's drives. | |
Entity types are abstract definitions of entities.
Every entity in the game world has an entity type that defines its attributes such as its faction with other entities and actions that can be performed on it. The quest generator needs to work with abstract entity types because actual instances of the entities may not exist in the world at the time a quest is being generated.
|
inline |
Returns a text descriptor for a specified number of this entity type.
count | The number of entities. |
|
inline |
Looks up this entity type's faction.
|
inline |
Returns the reward multiplier value for a specific category for this entity type.
category | The reward multiplier category. |
|
inline |
Returns a list of urgency functions, including those inherited from parents.
|
inline |
Looks up a drive value, first in the entity; failing that, checks parents.
|
getset |
Actions that can be performed on this entity type.
|
getset |
Description of this entity type.
|
getset |
The display name of this entity type.
|
getset |
This entity type's drives.
Used by quest generators to decide on targets and actions. Values may change at runtime.
|
getset |
The faction that this entity type belongs to.
|
getset |
The entity type's image may be shown in UIs.
|
getset |
True if there is only one entity of this type.
|
getset |
The entity type's level, used to determine quest difficulty and rewards.
|
getset |
When planning an action, limit to this many targets.
Key is total number known; value is max number to require in action.
|
getset |
When planning an action, set lower bound to this many targets.
Key is total number known; value is min number to require in action. Note: Actual count in action may be lower if target is still the most urgent but count is fewer than this value.
|
getset |
The entity type's original drive values (not current runtime values).
|
getset |
The entity type's parent types.
|
getset |
The plural display name for multiples of this entity type.
|
getset |
Functions that quest generators use to determine how urgently they must generate a quest about this entity.