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

Go to the source code of this file.

Data Structures

class  SCR_VotingBase
 
class  SCR_VotingReferendum
 

Functions

SCR_VotingReferendum SCR_VotingBase BaseContainerProps ()
 
protected float GetRatio ()
 
override void SetVote (int playerID, int value=DEFAULT_VALUE)
 
override bool RemoveVote (int playerID)
 
override bool RemoveValue (int value)
 
override bool IsMatching (EVotingType type, int value=DEFAULT_VALUE)
 
override bool Evaluate (out EVotingOutcome outcome)
 
override int GetWinner ()
 
override int GetPlayerVote (int playerID)
 
override int GetValue ()
 
override void Log ()
 
override void InitFromTemplate (SCR_VotingBase template, int value, float remainingDuration)
 
SCR_VotingReferendum SCR_VotingBase SCR_BaseContainerCustomTitleEnum (EVotingType, "m_Type")
 

Variables

protected ref set< intm_aPlayerIDs = new set<int>()
 
protected int m_iValue
 

Function Documentation

◆ BaseContainerProps()

SCR_VotingReferendum SCR_VotingBase BaseContainerProps ( )

Election of specific type. Once it starts, players can vote for multiple values. The voting ends when proportion of votes for single value is larger than threshold, or if time expires. If the vote had enough participation, the value with the most votes wins, otherwise the vote fails.

◆ Evaluate()

override bool BaseContainerProps::Evaluate ( out EVotingOutcome  outcome)

Definition at line 45 of file SCR_VotingBase.c.

◆ GetPlayerVote()

override int BaseContainerProps::GetPlayerVote ( int  playerID)

Definition at line 60 of file SCR_VotingBase.c.

◆ GetRatio()

protected float BaseContainerProps::GetRatio ( )

Definition at line 6 of file SCR_VotingBase.c.

◆ GetValue()

override int BaseContainerProps::GetValue ( )

Definition at line 69 of file SCR_VotingBase.c.

◆ GetWinner()

override int BaseContainerProps::GetWinner ( )

Definition at line 51 of file SCR_VotingBase.c.

◆ InitFromTemplate()

override void BaseContainerProps::InitFromTemplate ( SCR_VotingBase  template,
int  value,
float  remainingDuration 
)

Definition at line 85 of file SCR_VotingBase.c.

◆ IsMatching()

override bool BaseContainerProps::IsMatching ( EVotingType  type,
int  value = DEFAULT_VALUE 
)

Definition at line 39 of file SCR_VotingBase.c.

◆ Log()

override void BaseContainerProps::Log ( )

Definition at line 75 of file SCR_VotingBase.c.

◆ RemoveValue()

override bool BaseContainerProps::RemoveValue ( int  value)

Definition at line 33 of file SCR_VotingBase.c.

◆ RemoveVote()

override bool BaseContainerProps::RemoveVote ( int  playerID)

Definition at line 18 of file SCR_VotingBase.c.

◆ SCR_BaseContainerCustomTitleEnum()

◆ SetVote()

override void BaseContainerProps::SetVote ( int  playerID,
int  value = DEFAULT_VALUE 
)

Definition at line 12 of file SCR_VotingBase.c.

Variable Documentation

◆ m_aPlayerIDs

protected ref set<int> m_aPlayerIDs = new set<int>()

Definition at line 2 of file SCR_VotingBase.c.

◆ m_iValue

protected int m_iValue

Definition at line 3 of file SCR_VotingBase.c.