|
| void | OnReceive (int channel) |
| |
| void | OnReceiveInt (int channel, int value) |
| |
| void | OnReceiveFloat (int channel, float value) |
| |
| void | OnReceiveString (int channel, string value) |
| |
| void | OnReceiveParam (int channel, Param params) |
| | This method is called when an object inheriting from this class subscribes to a channel, and a message along with an object reference is broadcast on that channel, if the object was created just for the purpose of relaying information and is not referenced anywhere else, it should be deleted after processing inside this method.
|
| |
| void | MessageReceiverBase () |
| |
| void | Subscribe (int channel) |
| |
| void | Unsubscribe (int channel) |
| |
| void | UnsubscribeAll () |
| |
| void | Broadcast (int channel) |
| |
| void | BroadcastInt (int channel, int value) |
| |
| void | BroadcastFloat (int channel, float value) |
| |
| void | BroadcastString (int channel, string value) |
| |
| void | BroadcastParam (int channel, Param params) |
| |
| void | Log (string message) |
| |
| void | AgentBase () |
| |
| void | Init () |
| |
| int | GetAgentType () |
| |
| float | GetDieOffSpeedEx (PlayerBase player) |
| |
| EStatLevels | GetPotencyEx (PlayerBase player) |
| |
| float | GetInvasibilityEx (PlayerBase player) |
| |
| EStatLevels | GetPotency () |
| |
| float | GetDieOffSpeed () |
| |
| float | GetAntiboticsResistance () |
| |
| float | GetAntibioticsResistanceEx (PlayerBase player) |
| |
| float | GetInvasibility () |
| |
| bool | GrowDuringAntibioticsAttack (PlayerBase player) |
| |
| float | GetDigestibility () |
| |
| float | CalculateAutoinfectProbability (float userprob) |
| |
| bool | AutoinfectCheck (float deltaT, PlayerBase player) |
| |
| bool | CanAutoinfectPlayer (PlayerBase player) |
| |
| float | GetTransferabilityIn () |
| |
| float | GetTransferabilityOut () |
| |
| float | GetTransferabilityAirOut () |
| |
| int | GetMaxCount () |
| |
| string | GetName () |
| |
| void | DisplayElementBase (PlayerBase player) |
| |
| bool | IsClientOnly () |
| |
| bool | IsValueChanged () |
| |
| void | UpdateHUD () |
| |
| int | GetNumberOfBits () |
| |
| void | SetValue (int value, int range=0) |
| |
| int | GetValue () |
| |
| int | BitToDec (int mask, int index, int length) |
| |
| int | GetCompareMask () |
| |
| int | GetType () |
| |
| int | TranslateLevelToStatus (int level) |
| |
Definition at line 1 of file MessageReceiverBase.c.
◆ MessageReceiverBase()
| void MessageReceiverBase::MessageReceiverBase |
( |
| ) |
|
|
inlineprivate |
◆ AgentBase()
| void MessageReceiverBase::AgentBase |
( |
| ) |
|
|
inlineprivate |
◆ AutoinfectCheck()
Definition at line 82 of file AgentBase.c.
83 {
85 return false;
86
88
91 else
92 return false;
93 }
float m_AutoinfectProbability
bool CanAutoinfectPlayer(PlayerBase player)
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
References AgentBase::CanAutoinfectPlayer(), and Math::RandomFloat01().
◆ BitToDec()
| int MessageReceiverBase::BitToDec |
( |
int | mask, |
|
|
int | index, |
|
|
int | length ) |
|
inlineprivate |
◆ Broadcast()
| void MessageReceiverBase::Broadcast |
( |
int | channel | ) |
|
|
inlineprivate |
◆ BroadcastFloat()
| void MessageReceiverBase::BroadcastFloat |
( |
int | channel, |
|
|
float | value ) |
|
inlineprivate |
◆ BroadcastInt()
| void MessageReceiverBase::BroadcastInt |
( |
int | channel, |
|
|
int | value ) |
|
inlineprivate |
◆ BroadcastParam()
| void MessageReceiverBase::BroadcastParam |
( |
int | channel, |
|
|
Param | params ) |
|
inlineprivate |
◆ BroadcastString()
| void MessageReceiverBase::BroadcastString |
( |
int | channel, |
|
|
string | value ) |
|
inlineprivate |
◆ CalculateAutoinfectProbability()
| float MessageReceiverBase::CalculateAutoinfectProbability |
( |
float | userprob | ) |
|
|
inlineprivate |
Definition at line 77 of file AgentBase.c.
78 {
80 }
static proto float Pow(float v, float power)
Return power of v ^ power.
References Math::Pow().
◆ CanAutoinfectPlayer()
Definition at line 95 of file AgentBase.c.
96 {
97 return false;
98 }
◆ DisplayElementBase()
◆ GetAgentType()
| int MessageReceiverBase::GetAgentType |
( |
| ) |
|
|
inlineprivate |
◆ GetAntibioticsResistanceEx()
Definition at line 57 of file AgentBase.c.
58 {
60 }
float GetAntiboticsResistance()
◆ GetAntiboticsResistance()
| float MessageReceiverBase::GetAntiboticsResistance |
( |
| ) |
|
|
inlineprivate |
Definition at line 53 of file AgentBase.c.
54 {
56 }
float m_AntibioticsResistance
◆ GetCompareMask()
| int MessageReceiverBase::GetCompareMask |
( |
| ) |
|
|
inlineprivate |
◆ GetDieOffSpeed()
| float MessageReceiverBase::GetDieOffSpeed |
( |
| ) |
|
|
inlineprivate |
◆ GetDieOffSpeedEx()
◆ GetDigestibility()
| float MessageReceiverBase::GetDigestibility |
( |
| ) |
|
|
inlineprivate |
◆ GetInvasibility()
| float MessageReceiverBase::GetInvasibility |
( |
| ) |
|
|
inlineprivate |
◆ GetInvasibilityEx()
◆ GetMaxCount()
| int MessageReceiverBase::GetMaxCount |
( |
| ) |
|
|
inlineprivate |
◆ GetName()
| string MessageReceiverBase::GetName |
( |
| ) |
|
|
inlineprivate |
Definition at line 120 of file AgentBase.c.
121 {
122 return ClassName();
123 }
◆ GetNumberOfBits()
| int MessageReceiverBase::GetNumberOfBits |
( |
| ) |
|
|
inlineprivate |
◆ GetPotency()
◆ GetPotencyEx()
◆ GetTransferabilityAirOut()
| float MessageReceiverBase::GetTransferabilityAirOut |
( |
| ) |
|
|
inlineprivate |
Definition at line 110 of file AgentBase.c.
111 {
113 }
float m_TransferabilityAirOut
◆ GetTransferabilityIn()
| float MessageReceiverBase::GetTransferabilityIn |
( |
| ) |
|
|
inlineprivate |
Definition at line 100 of file AgentBase.c.
101 {
103 }
float m_TransferabilityIn
◆ GetTransferabilityOut()
| float MessageReceiverBase::GetTransferabilityOut |
( |
| ) |
|
|
inlineprivate |
Definition at line 105 of file AgentBase.c.
106 {
108 }
float m_TransferabilityOut
◆ GetType()
| int MessageReceiverBase::GetType |
( |
| ) |
|
|
inlineprivate |
◆ GetValue()
| int MessageReceiverBase::GetValue |
( |
| ) |
|
|
inlineprivate |
◆ GrowDuringAntibioticsAttack()
| bool MessageReceiverBase::GrowDuringAntibioticsAttack |
( |
PlayerBase | player | ) |
|
|
inlineprivate |
Definition at line 67 of file AgentBase.c.
68 {
69 return true;
70 }
◆ Init()
| void MessageReceiverBase::Init |
( |
| ) |
|
|
private |
◆ IsClientOnly()
| bool MessageReceiverBase::IsClientOnly |
( |
| ) |
|
|
inlineprivate |
◆ IsValueChanged()
| bool MessageReceiverBase::IsValueChanged |
( |
| ) |
|
|
inlineprivate |
◆ Log()
Definition at line 60 of file MessageReceiverBase.c.
61 {
63 }
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
References Debug::Log(), and m_System.
◆ OnReceive()
| void MessageReceiverBase::OnReceive |
( |
int | channel | ) |
|
|
inlineprivate |
◆ OnReceiveFloat()
| void MessageReceiverBase::OnReceiveFloat |
( |
int | channel, |
|
|
float | value ) |
|
inlineprivate |
◆ OnReceiveInt()
| void MessageReceiverBase::OnReceiveInt |
( |
int | channel, |
|
|
int | value ) |
|
inlineprivate |
◆ OnReceiveParam()
| void MessageReceiverBase::OnReceiveParam |
( |
int | channel, |
|
|
Param | params ) |
|
inlineprivate |
This method is called when an object inheriting from this class subscribes to a channel, and a message along with an object reference is broadcast on that channel, if the object was created just for the purpose of relaying information and is not referenced anywhere else, it should be deleted after processing inside this method.
Definition at line 12 of file MessageReceiverBase.c.
◆ OnReceiveString()
| void MessageReceiverBase::OnReceiveString |
( |
int | channel, |
|
|
string | value ) |
|
inlineprivate |
◆ SetValue()
| void MessageReceiverBase::SetValue |
( |
int | value, |
|
|
int | range = 0 ) |
|
inlineprivate |
◆ Subscribe()
| void MessageReceiverBase::Subscribe |
( |
int | channel | ) |
|
|
inlineprivate |
◆ TranslateLevelToStatus()
| int MessageReceiverBase::TranslateLevelToStatus |
( |
int | level | ) |
|
|
inlineprivate |
Definition at line 76 of file DisplayElementBase.c.
77 {
79 return 2;
81 return 3;
83 return 4;
85 return 5;
86 return 1;
87 }
◆ Unsubscribe()
| void MessageReceiverBase::Unsubscribe |
( |
int | channel | ) |
|
|
inlineprivate |
◆ UnsubscribeAll()
| void MessageReceiverBase::UnsubscribeAll |
( |
| ) |
|
|
inlineprivate |
◆ UpdateHUD()
| void MessageReceiverBase::UpdateHUD |
( |
| ) |
|
|
inlineprivate |
◆ m_AntibioticsResistance
| float MessageReceiverBase::m_AntibioticsResistance = 1 |
|
private |
◆ m_AutoinfectProbability
◆ m_Colors
| int MessageReceiverBase::m_Colors[7] |
|
private |
◆ m_DieOffSpeed
| float MessageReceiverBase::m_DieOffSpeed = 1 |
|
private |
◆ m_Digestibility
| float MessageReceiverBase::m_Digestibility = 0.1 |
|
private |
◆ m_Invasibility
| float MessageReceiverBase::m_Invasibility |
|
private |
◆ m_IsClientOnly
| bool MessageReceiverBase::m_IsClientOnly = false |
|
private |
◆ m_Key
| int MessageReceiverBase::m_Key = 0 |
|
private |
◆ m_Labels
| string MessageReceiverBase::m_Labels[7] |
|
private |
◆ m_MaxCount
| int MessageReceiverBase::m_MaxCount = 1 |
|
private |
◆ m_ModuleMessageManager
| PluginMessageManager MessageReceiverBase::m_ModuleMessageManager |
|
private |
◆ m_ModulePlayerStatus
| PluginPlayerStatus MessageReceiverBase::m_ModulePlayerStatus |
|
private |
◆ m_Player
◆ m_Pos
| int MessageReceiverBase::m_Pos = 1 |
|
private |
◆ m_Potency
◆ m_Range
| int MessageReceiverBase::m_Range = 0 |
|
private |
◆ m_System
| string MessageReceiverBase::m_System |
|
private |
◆ m_TransferabilityAirOut
| float MessageReceiverBase::m_TransferabilityAirOut |
|
private |
◆ m_TransferabilityIn
| float MessageReceiverBase::m_TransferabilityIn |
|
private |
◆ m_TransferabilityOut
| float MessageReceiverBase::m_TransferabilityOut |
|
private |
◆ m_Type [1/2]
| float MessageReceiverBase::m_Type = 0 |
|
private |
◆ m_Type [2/2]
| int MessageReceiverBase::m_Type = 0 |
|
private |
◆ m_Value
| int MessageReceiverBase::m_Value |
|
private |
◆ m_ValueLast
| int MessageReceiverBase::m_ValueLast = -99999 |
|
private |
◆ NUM_OF_BITS
| int MessageReceiverBase::NUM_OF_BITS |
|
private |
The documentation for this class was generated from the following files: