Unit.UnitView¶
-
public static class
UnitView
implements Serializable¶
Methods¶
getCargoAmount¶
-
public int
getCargoAmount
()¶ Get the amount of gold or wood being carried by this unit.
getCargoType¶
-
public ResourceType
getCargoType
()¶ Get the type of resource being carried by the unit. This is only relevant if getCargoAmount() indicates an amount being carried.
getCurrentDurativeAction¶
getCurrentDurativeProgress¶
-
public int
getCurrentDurativeProgress
()¶ Get the progress of this unit toward executing a durative action.
getTemplateView¶
-
public UnitTemplateView
getTemplateView
()¶ Get a view of the template this unit was made from. This carries information shared by all units of that type, such as the name, attack, armor, basic health, cost, prerequisites for building it, and what units/upgrades it can produce