Class: Contest::Effects::SkipTurn

Inherits:
EffectBase show all
Defined in:
docs/6_Contest_06_Effects.rb

Overview

Class describing an effect that prevent a creature from using a move during a turn

Instance Attribute Summary

Attributes inherited from EffectBase

#contestant, #counter, #logic

Instance Method Summary collapse

Methods inherited from EffectBase

#appeal_modifier, #dead?, #jam_modifier, #kill, #on_delete, #on_jam, #update_counter

Constructor Details

#initialize(logic, contestant, counter = 2) ⇒ SkipTurn

Create a new effect

Parameters:

  • logic (Contest::Logic) —

    Logic used to get all the handler in order to allow the effect to work

  • contestant (ContestCreature) —

    Contestant that has this effect

  • counter (Integer) (defaults to: 2) —

    Number of turns the creature should skip



241
242
# File 'docs/6_Contest_06_Effects.rb', line 241

def initialize(logic, contestant, counter = 2)
end

Instance Method Details

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


245
246
# File 'docs/6_Contest_06_Effects.rb', line 245

def name
end