Docs » API reference » Team

Team

A player's Voxelmon: the four cubes on their belt, and those stored.

The belt holds the cubes a player carries into battle. The rest are stored, and the player reaches them at a clinic or on the watch. Adding and removing needs creatures.

A handle to something in the game. Once that thing is gone, its calls fail with Gone. You get one from player.team().

Methods

MethodDescription
fn belt(&self) -> Result<Vec<Option<Creature>>>List<Creature> belt()The four belt places, in order.
fn stored(&self) -> Result<Vec<Creature>>List<Creature> stored()Every stored Voxelmon.
fn stored_limit(&self) -> Result<i64>long storedLimit()How many may be stored.
fn add(&self, species: Species, level: i64) -> Result<Option<Creature>>Optional<Creature> add(Species species, long level) creaturesGives the player a new Voxelmon: to the belt if a place is free, else stored; nothing if full.
fn remove(&self, creature: Creature) -> Result<()>void remove(Creature creature) creaturesTakes one from the player for good.
fn heal_all(&self) -> Result<()>void healAll()Heals every one, as at a clinic.