![]() |
Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
| class | SCR_FuelConsumptionComponentClass |
Functions | |
| void | SetCurrentFuelTank (int iFuelTankID) |
| BaseFuelNode | GetCurrentFuelTank () |
| protected BaseFuelNode | FindFuelTankByID (int iFuelTankID) |
| private BaseFuelNode | FindNonEmptyFuelTank () |
| void | SetEnabled (bool enabled) |
| void | Update () |
| updates currently active fueltank to see if it can still be used. turns off engine if no usable fueltanks are present. More... | |
| protected void | ConnectToFuelConsumptionSystem () |
| protected void | DisconnectFromFuelConsumptionSystem () |
| void | Update (float timeSlice) |
| override void | OnPostInit (IEntity owner) |
| Called on PostInit when all components are added. More... | |
| override void | EOnInit (IEntity owner) |
| override void | OnDelete (IEntity owner) |
Variables | |
| SCR_FuelConsumptionComponentClass | SECOND_TO_HOUR = 1/3600 |
| const protected float | MIN_FUEL = 0 |
| const protected float | MIN_THRUST = 0.04 |
| const protected float | MIN_CLUTCH = 0.04 |
| const protected float | NEUTRAL_GEAR = 1 |
| const protected float | TIME_STEP = 1 |
| protected bool | m_bConnectedToSystem = false |
| protected float | m_fTimeDelta |
| protected BaseFuelNode | m_CurrentFuelTank |
| protected VehicleBaseSimulation | m_Simulation |
| protected SCR_FuelConsumptionComponentClass | m_ComponentData |
| protected void ConnectToFuelConsumptionSystem | ( | ) |
Definition at line 290 of file SCR_FuelConsumptionComponent.c.
| protected void DisconnectFromFuelConsumptionSystem | ( | ) |
Definition at line 302 of file SCR_FuelConsumptionComponent.c.
| protected BaseFuelNode FindFuelTankByID | ( | int | iFuelTankID | ) |
returns the fuel tank pointer by the given FuelTankID
| [in] | iFuelTankID |
Definition at line 79 of file SCR_FuelConsumptionComponent.c.
| private BaseFuelNode FindNonEmptyFuelTank | ( | ) |
Definition at line 101 of file SCR_FuelConsumptionComponent.c.
| BaseFuelNode GetCurrentFuelTank | ( | ) |
Definition at line 70 of file SCR_FuelConsumptionComponent.c.
| void SetCurrentFuelTank | ( | int | iFuelTankID | ) |
Switch the actual fuel tank (i.e. by a switch on the dashboard)
| [in] | iFuelTankID |
Definition at line 63 of file SCR_FuelConsumptionComponent.c.
| void SetEnabled | ( | bool | enabled | ) |
| [in] | enabled |
Definition at line 120 of file SCR_FuelConsumptionComponent.c.
| void Update | ( | float | timeSlice | ) |
| [in] | timeSlice |
Definition at line 318 of file SCR_FuelConsumptionComponent.c.
| protected bool m_bConnectedToSystem = false |
Definition at line 23 of file SCR_FuelConsumptionComponent.c.
| protected SCR_FuelConsumptionComponentClass m_ComponentData |
Definition at line 28 of file SCR_FuelConsumptionComponent.c.
| protected BaseFuelNode m_CurrentFuelTank |
Definition at line 26 of file SCR_FuelConsumptionComponent.c.
| protected float m_fTimeDelta |
Definition at line 25 of file SCR_FuelConsumptionComponent.c.
| protected VehicleBaseSimulation m_Simulation |
Definition at line 27 of file SCR_FuelConsumptionComponent.c.
| const protected float MIN_CLUTCH = 0.04 |
Definition at line 19 of file SCR_FuelConsumptionComponent.c.
| const protected float MIN_FUEL = 0 |
Definition at line 17 of file SCR_FuelConsumptionComponent.c.
| const protected float MIN_THRUST = 0.04 |
Definition at line 18 of file SCR_FuelConsumptionComponent.c.
| const protected float NEUTRAL_GEAR = 1 |
Definition at line 20 of file SCR_FuelConsumptionComponent.c.
| SCR_FuelConsumptionComponentClass SECOND_TO_HOUR = 1/3600 |
| const protected float TIME_STEP = 1 |
Definition at line 21 of file SCR_FuelConsumptionComponent.c.