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
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
racefrom the active races and from all races listsoverride -
getType(
String name) → Race -
Returns the corresponding race from all races called
nameoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerType(
Race race) → void -
Adds
raceto the list of all races and active racesoverride -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterType(
Race race) → void -
Removes
raceonly from the active racesoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited