Expand description
This module contains the Eevee
and EvolvedEevee
type, as well as its
method implementations.
In this module, we’ll be implementing a variable-type pokemon that represents some of the Eevee evolution line:
- Eevee
- Vaporeon
- Flareon
- Leafeon
To model the evolution line, we use a type system that represents the possible states that the Eevee can be in.
We have an Eevee
type that contains stats about the
Eevee, and several methods that can retrieve and modify these stats. We also have an
EvolvedEevee
type that can be one of Vaporeon, Flareon, and Leafeon.
An Eevee
can evolve
into an EvolvedEevee
,
and an EvolvedEevee
can devolve
back into an Eevee
.
See the documentation below for each of these types to learn more!
Structs
- This type represents a basic
Eevee
pokemon. It has a level, as well as health, attack, and defense stats.
Enums
- These stones are used to evolve an
Eevee
into anEvolvedEevee
. - This type represent an evolved Eevee in the form of either Vaporeon, Flareon, or Leafeon.