Documentation ¶
Index ¶
- type Adv
- type Malice
- func (m *Malice) CallJudgeElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Malice) CallPresidentElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Malice) CallSpeakerElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Malice) DecideNextJudge(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Malice) DecideNextPresident(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Malice) DecideNextSpeaker(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Malice) GetPardonedIslands(currentSanctions map[int][]shared.Sanction) (map[int][]bool, bool)
- func (m *Malice) GetRuleViolationSeverity() (map[string]shared.IIGOSanctionsScore, bool)
- func (m *Malice) Initialise(id shared.ClientID)
- func (m *Malice) InspectHistory(iigoHistory []shared.Accountability, turnsAgo int) (map[shared.ClientID]shared.EvaluationReturn, bool, bool)
- func (m *Malice) ProposeRule(availableRules map[string]rules.RuleMatrix) (rules.RuleMatrix, bool)
- func (m *Malice) SetTaxationAmount(islandsResources map[shared.ClientID]shared.ResourcesReport) (shared.PresidentReturnContent, bool)
- type Spec
- type Target
- func (m *Target) CallJudgeElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Target) CallPresidentElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Target) CallSpeakerElection(monitoring shared.MonitorResult, turnsInPower int, ...) (shared.ElectionSettings, bool)
- func (m *Target) DecideNextJudge(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Target) DecideNextPresident(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Target) DecideNextSpeaker(winner shared.ClientID) (shared.ClientID, bool)
- func (m *Target) GetPardonedIslands(currentSanctions map[int][]shared.Sanction) (map[int][]bool, bool)
- func (m *Target) GetRuleViolationSeverity() (map[string]shared.IIGOSanctionsScore, bool)
- func (m *Target) Initialise(id shared.ClientID)
- func (m *Target) InspectHistory(iigoHistory []shared.Accountability, turnsAgo int) (map[shared.ClientID]shared.EvaluationReturn, bool, bool)
- func (m *Target) ProposeRule(availableRules map[string]rules.RuleMatrix) (rules.RuleMatrix, bool)
- func (m *Target) SetTaxationAmount(islandsResources map[shared.ClientID]shared.ResourcesReport) (shared.PresidentReturnContent, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adv ¶
type Adv interface { Initialise(clientID shared.ClientID) ProposeRule(availableRules map[string]rules.RuleMatrix) (rules.RuleMatrix, bool) GetRuleViolationSeverity() (map[string]shared.IIGOSanctionsScore, bool) GetPardonedIslands(currentSanctions map[int][]shared.Sanction) (map[int][]bool, bool) CallPresidentElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool) DecideNextPresident(winner shared.ClientID) (shared.ClientID, bool) CallJudgeElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool) DecideNextJudge(winner shared.ClientID) (shared.ClientID, bool) CallSpeakerElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool) DecideNextSpeaker(winner shared.ClientID) (shared.ClientID, bool) InspectHistory(iigoHistory []shared.Accountability, turnsAgo int) (map[shared.ClientID]shared.EvaluationReturn, bool, bool) SetTaxationAmount(islandsResources map[shared.ClientID]shared.ResourcesReport) (shared.PresidentReturnContent, bool) }
type Malice ¶
func (*Malice) CallJudgeElection ¶
func (m *Malice) CallJudgeElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Malice) CallPresidentElection ¶
func (m *Malice) CallPresidentElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Malice) CallSpeakerElection ¶
func (m *Malice) CallSpeakerElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Malice) DecideNextJudge ¶
func (*Malice) DecideNextPresident ¶
func (*Malice) DecideNextSpeaker ¶
func (*Malice) GetPardonedIslands ¶
func (*Malice) GetRuleViolationSeverity ¶
func (m *Malice) GetRuleViolationSeverity() (map[string]shared.IIGOSanctionsScore, bool)
func (*Malice) Initialise ¶
func (*Malice) InspectHistory ¶
func (m *Malice) InspectHistory(iigoHistory []shared.Accountability, turnsAgo int) (map[shared.ClientID]shared.EvaluationReturn, bool, bool)
func (*Malice) ProposeRule ¶
func (m *Malice) ProposeRule(availableRules map[string]rules.RuleMatrix) (rules.RuleMatrix, bool)
func (*Malice) SetTaxationAmount ¶
func (m *Malice) SetTaxationAmount(islandsResources map[shared.ClientID]shared.ResourcesReport) (shared.PresidentReturnContent, bool)
type Target ¶
func (*Target) CallJudgeElection ¶
func (m *Target) CallJudgeElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Target) CallPresidentElection ¶
func (m *Target) CallPresidentElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Target) CallSpeakerElection ¶
func (m *Target) CallSpeakerElection(monitoring shared.MonitorResult, turnsInPower int, allIslands []shared.ClientID) (shared.ElectionSettings, bool)
func (*Target) DecideNextJudge ¶
func (*Target) DecideNextPresident ¶
func (*Target) DecideNextSpeaker ¶
func (*Target) GetPardonedIslands ¶
func (*Target) GetRuleViolationSeverity ¶
func (m *Target) GetRuleViolationSeverity() (map[string]shared.IIGOSanctionsScore, bool)
func (*Target) Initialise ¶
func (*Target) InspectHistory ¶
func (m *Target) InspectHistory(iigoHistory []shared.Accountability, turnsAgo int) (map[shared.ClientID]shared.EvaluationReturn, bool, bool)
func (*Target) ProposeRule ¶
func (m *Target) ProposeRule(availableRules map[string]rules.RuleMatrix) (rules.RuleMatrix, bool)
func (*Target) SetTaxationAmount ¶
func (m *Target) SetTaxationAmount(islandsResources map[shared.ClientID]shared.ResourcesReport) (shared.PresidentReturnContent, bool)
Click to show internal directories.
Click to hide internal directories.