Loading...
Searching...
No Matches
CityBuilderCore.ViewBuildingHealthBar Class Reference
Inheritance diagram for CityBuilderCore.ViewBuildingHealthBar:
CityBuilderCore.ViewBuildingBarBase CityBuilderCore.IBuildingValue CityBuilderCore.View

Public Member Functions

bool HasValue (IBuilding building)
 whether the value even applies to the building in question
 
float GetMaximum (IBuilding building)
 the maximum value this value may get to
important for bars that use a ratio
 
float GetValue (IBuilding building)
 checks for the value the building currently has
 
Vector3 GetPosition (IBuilding building)
 the world position that the value should be visualized at
especially relevant for global values that are not created as a child of the building
 
- Public Member Functions inherited from CityBuilderCore.ViewBuildingBarBase
override void Activate ()
 
override void Deactivate ()
 
- Public Member Functions inherited from CityBuilderCore.View
void Activate ()
 
void Deactivate ()
 

Properties

override IBuildingValue BuildingValue [get]
 
- Properties inherited from CityBuilderCore.ViewBuildingBarBase
IBuildingValue BuildingValue [get]
 

Additional Inherited Members

- Public Attributes inherited from CityBuilderCore.ViewBuildingBarBase
BuildingValueBar Bar
 
- Public Attributes inherited from CityBuilderCore.View
string Name
 

Member Function Documentation

◆ GetMaximum()

float CityBuilderCore.ViewBuildingHealthBar.GetMaximum ( IBuilding building)

the maximum value this value may get to
important for bars that use a ratio

Parameters
buildingthe building in question
Returns
max value the building might ever return

Implements CityBuilderCore.IBuildingValue.

◆ GetPosition()

Vector3 CityBuilderCore.ViewBuildingHealthBar.GetPosition ( IBuilding building)

the world position that the value should be visualized at
especially relevant for global values that are not created as a child of the building

Parameters
buildingthe building in question
Returns
where the value should be visualized

Implements CityBuilderCore.IBuildingValue.

◆ GetValue()

float CityBuilderCore.ViewBuildingHealthBar.GetValue ( IBuilding building)

checks for the value the building currently has

Parameters
buildingthe building of which we want to know the value
Returns
the value of the building

Implements CityBuilderCore.IBuildingValue.

◆ HasValue()

bool CityBuilderCore.ViewBuildingHealthBar.HasValue ( IBuilding building)

whether the value even applies to the building in question

Parameters
buildingthe building in question
Returns
true when the building has this value

Implements CityBuilderCore.IBuildingValue.