Wheeled Vehicle
Parent |
The base class for all vehicles that used wheels for movement.
Properties
burnRatio : Float
The amount of fuel this vehicle burns.
Details
| Flags | ReadOnly RuntimeSync RuntimeParallel |
|---|---|
Display Name |
Burn Ratio |
hasFuel : Bool
True if the vehicle has currently fuel to drive.
Details
| Flags | ReadOnly RuntimeSync RuntimeParallel |
|---|---|
Display Name |
Has Fuel |
Functions
getCurrentTarget () → index : Int
Returns the index of the target that the vehicle tries to move to right now.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Current Target |
| Name | Type | Description |
|---|---|---|
Index |
Int |
The index of the current target. |
getFuelInv () → inventory : Trace<Inventory>
Returns the inventory that contains the fuel of the vehicle.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Fuel Inventory |
| Name | Type | Description |
|---|---|---|
Inventory |
Trace<Inventory> |
The fuel inventory of the vehicle. |
getStorageInv () → inventory : Trace<Inventory>
Returns the inventory that contains the storage of the vehicle.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Storage Inventory |
| Name | Type | Description |
|---|---|---|
Inventory |
Trace<Inventory> |
The storage inventory of the vehicle. |
getTargetList () → targetList : Trace<TargetList>
Returns the list of targets/path waypoints.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Target List |
| Name | Type | Description |
|---|---|---|
Target List |
Trace<TargetList> |
The list of targets/path-waypoints. |
isValidFuel (item : Class<ItemType>) → isValid : Bool
Allows to check if the given item type is a valid fuel for this vehicle.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Is Valid Fuel |
| Name | Type | Description |
|---|---|---|
Item |
Class<ItemType> |
The item type you want to check. |
| Name | Type | Description |
|---|---|---|
Is Valid |
Bool |
True if the given item type is a valid fuel for this vehicle. |
setCurrentTarget (index : Int)
Sets the target with the given index as the target this vehicle tries to move to right now.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Set Current Target |
| Name | Type | Description |
|---|---|---|
Index |
Int |
The index of the target this vehicle should move to now. |