Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FuelNode.c File Reference

Go to the source code of this file.

Enumerations

enum  EFuelFlowCapacityIn
 

Functions

enum EFuelFlowCapacityIn Attribute (defvalue:"1", uiwidget:UIWidgets.EditBox, desc:"Initial fuel level")] protected float m_fInitialFuelTankState
 
bool CanReceiveFuel ()
 
bool CanProvideFuel ()
 
bool HasExactTypeFlags (SCR_EFuelNodeTypeFlag typeFlag)
 
bool HasAllTypeFlags (SCR_EFuelNodeTypeFlag typeFlag)
 
bool HasAnyTypeFlag (SCR_EFuelNodeTypeFlag typeFlag)
 
int GetFuelTankID ()
 Assigned fuel tank ID. More...
 
IEntity GetOwner ()
 Owner entity of the fuel tank. More...
 
void SetHealth (float health)
 
override void OnFixedFrame (IEntity owner, float timeSlice)
 
override protected void OnFuelChanged (float newFuel)
 
ScriptInvokerFloat GetOnFuelChanged ()
 
float GetHealth ()
 
float GetLeakableFuel ()
 
EFuelFlowCapacityOut GetMaxFlowCapacityOut ()
 
EFuelFlowCapacityIn GetMaxFlowCapacityIn ()
 
override void OnInit (IEntity owner)
 

Variables

enum EFuelFlowCapacityIn MANUAL = 50
 
enum EFuelFlowCapacityIn VEHICLE_SMALL = 250
 
enum EFuelFlowCapacityIn VEHICLE_MEDIUM = 700
 
enum EFuelFlowCapacityIn VEHICLE_BIG = 1400
 
enum EFuelFlowCapacityIn VEHICLE_HELICOPTER = 2500
 
enum EFuelFlowCapacityIn FUEL_CARGO = 4500
 
enum EFuelFlowCapacityIn CAN_RECEIVE_FUEL = 1 << 0
 Can the fuel node receive fuel from other fuel nodes. More...
 
enum EFuelFlowCapacityIn CAN_PROVIDE_FUEL = 1 << 1
 Can the fuel node provide fuel to other fuel nodes. More...
 
enum EFuelFlowCapacityIn CAN_BE_DRAINED = 1 << 2
 If the fuel node can be drained with user action. More...
 
enum EFuelFlowCapacityIn IS_FUEL_STORAGE = 1 << 3
 Any fuel nodes such as fuel tanker and in world refuel points. More...
 
protected EFuelFlowCapacityOut m_MaxFlowCapacityOut
 
protected EFuelFlowCapacityIn m_MaxFlowCapacityIn
 
protected int m_iFuelLeakSpeed
 
protected SCR_EFuelNodeTypeFlag m_eFuelNodeType
 
protected int m_iFuelTankID
 
protected ref ScriptInvokerFloat m_OnFuelChanged
 
const protected float TIME_STEP = 1
 
protected float m_fTimeSkip
 
protected IEntity m_Owner
 
protected float m_fHealth = 1
 
protected SignalsManagerComponent m_SignalManagerComp
 
protected int m_iSignalFuelStateIdx
 
protected int m_iSignalIndexFuelTank
 
protected string m_sSignalFuelState
 
const protected string SIGNAL_FUEL_TANK_PREFIX = "fuel"
 
const protected string SIGNAL_FUEL_TANK_ID = "fueltank"
 

Enumeration Type Documentation

◆ EFuelFlowCapacityIn

Definition at line 2 of file SCR_FuelNode.c.

Function Documentation

◆ Attribute()

enum EFuelFlowCapacityIn Attribute ( defvalue:"1"  ,
uiwidget:UIWidgets.  EditBox,
desc:"Initial fuel level"   
)

◆ CanProvideFuel()

bool CanProvideFuel ( )
Returns
true if fuel node can provide fuel

Definition at line 87 of file SCR_FuelNode.c.

◆ CanReceiveFuel()

bool CanReceiveFuel ( )
Returns
true if fuel node can receive fuel

Definition at line 80 of file SCR_FuelNode.c.

◆ GetFuelTankID()

int GetFuelTankID ( )

Assigned fuel tank ID.

Definition at line 121 of file SCR_FuelNode.c.

◆ GetHealth()

float GetHealth ( )
Returns

Definition at line 196 of file SCR_FuelNode.c.

◆ GetLeakableFuel()

float GetLeakableFuel ( )
Returns

Definition at line 203 of file SCR_FuelNode.c.

◆ GetMaxFlowCapacityIn()

EFuelFlowCapacityIn GetMaxFlowCapacityIn ( )
Returns

Definition at line 217 of file SCR_FuelNode.c.

◆ GetMaxFlowCapacityOut()

EFuelFlowCapacityOut GetMaxFlowCapacityOut ( )
Returns

Definition at line 210 of file SCR_FuelNode.c.

◆ GetOnFuelChanged()

ScriptInvokerFloat GetOnFuelChanged ( )
Returns

Definition at line 186 of file SCR_FuelNode.c.

◆ HasAllTypeFlags()

bool HasAllTypeFlags ( SCR_EFuelNodeTypeFlag  typeFlag)

Check if FuelNodeType enum contains all the given fuel node type flags

Parameters
typeFlagQueried flag types
Returns
true if FuelNode Type contains all required type flags

Definition at line 105 of file SCR_FuelNode.c.

◆ HasAnyTypeFlag()

bool HasAnyTypeFlag ( SCR_EFuelNodeTypeFlag  typeFlag)

Check if FuelNodeType enum contains any of the given fuel node type flags

Parameters
typeFlagQueried flag types
Returns
True if FuelNode Type contains any required type flag

Definition at line 114 of file SCR_FuelNode.c.

◆ HasExactTypeFlags()

bool HasExactTypeFlags ( SCR_EFuelNodeTypeFlag  typeFlag)

Check if FuelNodeType enum is exactly the same as the nodeType enum

Parameters
typeFlagQueried flag types
Returns
true if FuelNode Type contains the exact same flags, false otherwise

Definition at line 96 of file SCR_FuelNode.c.

◆ OnFixedFrame()

override void OnFixedFrame ( IEntity  owner,
float  timeSlice 
)

Definition at line 150 of file SCR_FuelNode.c.

◆ OnFuelChanged()

override protected void OnFuelChanged ( float  newFuel)

Definition at line 175 of file SCR_FuelNode.c.

◆ SetHealth()

void SetHealth ( float  health)
Parameters
[in]health

Definition at line 135 of file SCR_FuelNode.c.

Variable Documentation

◆ CAN_BE_DRAINED

enum EFuelFlowCapacityIn CAN_BE_DRAINED = 1 << 2

If the fuel node can be drained with user action.

◆ CAN_PROVIDE_FUEL

enum EFuelFlowCapacityIn CAN_PROVIDE_FUEL = 1 << 1

Can the fuel node provide fuel to other fuel nodes.

◆ CAN_RECEIVE_FUEL

enum EFuelFlowCapacityIn CAN_RECEIVE_FUEL = 1 << 0

Can the fuel node receive fuel from other fuel nodes.

◆ FUEL_CARGO

FUEL_CARGO = 4500

Definition at line 7 of file SCR_FuelNode.c.

◆ IS_FUEL_STORAGE

enum EFuelFlowCapacityIn IS_FUEL_STORAGE = 1 << 3

Any fuel nodes such as fuel tanker and in world refuel points.

◆ m_eFuelNodeType

protected SCR_EFuelNodeTypeFlag m_eFuelNodeType

Definition at line 48 of file SCR_FuelNode.c.

◆ m_fHealth

protected float m_fHealth = 1

Definition at line 60 of file SCR_FuelNode.c.

◆ m_fTimeSkip

protected float m_fTimeSkip

Definition at line 58 of file SCR_FuelNode.c.

◆ m_iFuelLeakSpeed

protected int m_iFuelLeakSpeed

Definition at line 45 of file SCR_FuelNode.c.

◆ m_iFuelTankID

protected int m_iFuelTankID

Definition at line 51 of file SCR_FuelNode.c.

◆ m_iSignalFuelStateIdx

protected int m_iSignalFuelStateIdx

Definition at line 64 of file SCR_FuelNode.c.

◆ m_iSignalIndexFuelTank

protected int m_iSignalIndexFuelTank

Definition at line 65 of file SCR_FuelNode.c.

◆ m_MaxFlowCapacityIn

protected EFuelFlowCapacityIn m_MaxFlowCapacityIn

Definition at line 42 of file SCR_FuelNode.c.

◆ m_MaxFlowCapacityOut

protected EFuelFlowCapacityOut m_MaxFlowCapacityOut

Definition at line 39 of file SCR_FuelNode.c.

◆ m_OnFuelChanged

protected ref ScriptInvokerFloat m_OnFuelChanged

Definition at line 54 of file SCR_FuelNode.c.

◆ m_Owner

protected IEntity m_Owner

Definition at line 59 of file SCR_FuelNode.c.

◆ m_SignalManagerComp

protected SignalsManagerComponent m_SignalManagerComp

Definition at line 62 of file SCR_FuelNode.c.

◆ m_sSignalFuelState

protected string m_sSignalFuelState

Definition at line 66 of file SCR_FuelNode.c.

◆ MANUAL

MANUAL = 50

Definition at line 2 of file SCR_FuelNode.c.

◆ SIGNAL_FUEL_TANK_ID

const protected string SIGNAL_FUEL_TANK_ID = "fueltank"

Definition at line 68 of file SCR_FuelNode.c.

◆ SIGNAL_FUEL_TANK_PREFIX

const protected string SIGNAL_FUEL_TANK_PREFIX = "fuel"

Definition at line 67 of file SCR_FuelNode.c.

◆ TIME_STEP

const protected float TIME_STEP = 1

Definition at line 57 of file SCR_FuelNode.c.

◆ VEHICLE_BIG

VEHICLE_BIG = 1400

Definition at line 5 of file SCR_FuelNode.c.

◆ VEHICLE_HELICOPTER

VEHICLE_HELICOPTER = 2500

Definition at line 6 of file SCR_FuelNode.c.

◆ VEHICLE_MEDIUM

VEHICLE_MEDIUM = 700

Definition at line 4 of file SCR_FuelNode.c.

◆ VEHICLE_SMALL

VEHICLE_SMALL = 250

Definition at line 3 of file SCR_FuelNode.c.