RaceManager class

A class that handles the available races and using them

When making a custom race, make sure to register it or else some features might not work

Inheritance

Constructors

RaceManager()
const

Properties

activeTypes List<Race>
Returns all active races
no setteroverride
allTypes List<Race>
Returns all the races
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteType(Race race) → void
Removes race from the active races and from all races lists
override
getType(String name) Race
Returns the corresponding race from all races called name
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerType(Race race) → void
Adds race to the list of all races and active races
override
toString() String
A string representation of this object.
inherited
unregisterType(Race race) → void
Removes race only from the active races
override

Operators

operator ==(Object other) bool
The equality operator.
inherited