PlayerTeam
io.github.pidoveproject.showdown.battle.PlayerTeam
The pokemon team of a player.
Value parameters
- members
-
the pokemon members of the team
- size
-
the size of the team
Attributes
- Source
- PlayerTeam.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Get the first available team slot
Get the pokemon at the given slot.
Get the pokemon at the given slot.
Value parameters
- slot
-
the slot to get from
Attributes
- Returns
-
the pokemon at
slot
- Source
- PlayerTeam.scala
Retrieve the slot of a pokemon using its details.
Retrieve the slot of a pokemon using its details.
Value parameters
- details
-
the details to identify the pokemon
Attributes
- Returns
-
the matching pokemon's slot or None
- Source
- PlayerTeam.scala
Replace the details of a team member.
Replace the details of a team member.
Value parameters
- details
-
the new details of the pokemon
- slot
-
the position of the pokemon to modify
Attributes
- Returns
-
a copy of this team with the given details
- Source
- PlayerTeam.scala
Set the member at the given slot.
Set the member at the given slot.
Value parameters
- pokemon
-
the pokemon to set
- slot
-
the slot to modify
Attributes
- Returns
-
a copy of this team with the given pokemon added
- Source
- PlayerTeam.scala
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article