Struct peppi::model::game::Player[][src]

pub struct Player {
Show 15 fields pub port: Port, pub character: External, pub type: PlayerType, pub stocks: u8, pub costume: u8, pub team: Option<Team>, pub handicap: u8, pub bitfield: u8, pub cpu_level: Option<u8>, pub offense_ratio: f32, pub defense_ratio: f32, pub model_scale: f32, pub ucf: Option<Ucf>, pub name_tag: Option<String>, pub netplay: Option<Netplay>,
}
Expand description

Information about each player such as character, team, stock count, etc.

Fields

port: Portcharacter: Externaltype: PlayerTypestocks: u8

starting stock count

costume: u8team: Option<Team>handicap: u8

handicap level; affects offense_ratio & defense_ratio

bitfield: u8

miscellaneous flags (metal, stamina mode, etc)

cpu_level: Option<u8>offense_ratio: f32

knockback multiplier when this player hits another

defense_ratio: f32

knockback multiplier when this player is hit

model_scale: f32ucf: Option<Ucf>

UCF info (added: v1.0)

name_tag: Option<String>

in-game name-tag (added: v1.3)

netplay: Option<Netplay>

netplay info (added: v3.9)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.