Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ResourceConsumtionResponse.c
Go to the documentation of this file.
2 {
3  SUFFICIENT, // Sufficient Resource Available
4  INSUFICIENT, // Insufficient Resource Available
5  UNAVAILABLE // No Resource Available
6 }
7 
8 // TODO: rename Consumtion -> Consumption
10 {
11  protected float m_fAvailableResource;
12  protected float m_fResourceMultiplier;
13  protected float m_fRange;
15 
16  //------------------------------------------------------------------------------------------------
17  void SCR_ResourceConsumtionResponse(float availableResource = 0, float resourceMultiplier = 0, float range = 0, EResourceReason reasonCode = EResourceReason.UNAVAILABLE)
18  {
19  m_fAvailableResource = availableResource;
20  m_fResourceMultiplier = resourceMultiplier;
21  m_fRange = range;
22  m_eReason = reasonCode;
23  }
24 
25  //------------------------------------------------------------------------------------------------
27  {
28  return m_fAvailableResource;
29  }
30 
31  //------------------------------------------------------------------------------------------------
33  {
34  return m_fResourceMultiplier;
35  }
36 
37  //------------------------------------------------------------------------------------------------
38  float GetRange()
39  {
40  return m_fRange;
41  }
42 
43  //------------------------------------------------------------------------------------------------
45  {
46  return m_eReason;
47  }
48 
49  //------------------------------------------------------------------------------------------------
50  void SetAvailableResource(float availableResource)
51  {
52  m_fAvailableResource = availableResource;
53  }
54 
55  //------------------------------------------------------------------------------------------------
56  void SetResourceMultiplier(float resourceMultiplier)
57  {
58  m_fResourceMultiplier = resourceMultiplier;
59  }
60 
61  //------------------------------------------------------------------------------------------------
62  void SetRange(float range)
63  {
64  m_fRange = range;
65  }
66 
67  //------------------------------------------------------------------------------------------------
68  void SetReason(EResourceReason reasonCode)
69  {
70  m_eReason = reasonCode;
71  }
72 }
73 
74 // //! classname typo fix
75 // class SCR_ResourceConsumptionResponse : SCR_ResourceConsumtionResponse
76 // {
77 // }
SetResourceMultiplier
void SetResourceMultiplier(float resourceMultiplier)
Definition: SCR_ResourceConsumtionResponse.c:56
EResourceReason
EResourceReason
Definition: SCR_ResourceConsumtionResponse.c:1
SetAvailableResource
void SetAvailableResource(float availableResource)
Definition: SCR_ResourceConsumtionResponse.c:50
GetAvailableSupply
float GetAvailableSupply()
Definition: SCR_ResourceConsumtionResponse.c:26
SUFFICIENT
@ SUFFICIENT
Definition: SCR_ResourceConsumtionResponse.c:3
INSUFICIENT
@ INSUFICIENT
Definition: SCR_ResourceConsumtionResponse.c:4
m_fRange
protected float m_fRange
Definition: SCR_ResourceConsumtionResponse.c:13
m_fResourceMultiplier
protected float m_fResourceMultiplier
Definition: SCR_ResourceConsumtionResponse.c:12
SCR_ResourceConsumtionResponse
void SCR_ResourceConsumtionResponse(float availableResource=0, float resourceMultiplier=0, float range=0, EResourceReason reasonCode=EResourceReason.UNAVAILABLE)
Definition: SCR_ResourceConsumtionResponse.c:17
m_eReason
protected EResourceReason m_eReason
Definition: SCR_ResourceConsumtionResponse.c:14
GetResourceMultiplier
float GetResourceMultiplier()
Definition: SCR_ResourceConsumtionResponse.c:32
SetRange
void SetRange(float range)
Definition: SCR_ResourceConsumtionResponse.c:62
GetReason
EResourceReason GetReason()
Definition: SCR_ResourceConsumtionResponse.c:44
m_fAvailableResource
enum EResourceReason m_fAvailableResource
SetReason
void SetReason(EResourceReason reasonCode)
Definition: SCR_ResourceConsumtionResponse.c:68
GetRange
float GetRange()
Definition: SCR_ResourceConsumtionResponse.c:38
UNAVAILABLE
@ UNAVAILABLE
Definition: SCR_ResourceConsumtionResponse.c:5