song_match.effect

song_match.effect.effect

class song_match.effect.effect.Effect(song_robot: song_match.song_robot.SongRobot)[source]

Bases: abc.ABC

Abstract base class for game effects.

song_match.effect.factory

class song_match.effect.factory.EffectFactory(song_robot: song_match.song_robot.SongRobot)[source]

Bases: object

Factory for creating Effect instances.

create(effect_type: str)[source]

Factory method for creating effects.

Usage: create('WrongNote')

Parameters:effect_type – Upper camel case class name of the effect.
Returns:Effect