pub struct Warrior { /* private fields */ }
Expand description

An interface the player can interact with to control the Warrior in the game. An instance is passed to Player via the play_turn method. The player must pick one Action to perform each turn. Not all abilities are an Action. Warrior abilities are unlocked as the player progresses through the levels.

Level Guide

Level 1

Available abilities:

Level 2

New abilities unlocked at this level:

Level 3

New abilities unlocked at this level:

Level 4

No new abilities unlocked at this level!

Level 5

New abilities unlocked at this level:

Level 6

The following abilities now have a directional counterpart:

Level 7

New abilities unlocked at this level:

Level 8

New abilities (and directional counterparts) unlocked at this level:

Level 9

No new abilities unlocked at this level!

Implementations

Walk forward one tile. This is an Action. This ability is available at Level 1.

Walk one tile toward specified direction. This is an Action. This ability is unlocked at Level 6.

Check the tile in front of the Warrior. Returns a Tile. This ability is unlocked at Level 2.

Check the tile toward specified direction. Returns a Tile. This ability is unlocked at Level 6.

Check three tiles in front of the Warrior. Returns a vector of up to three Tiles. This ability is unlocked at Level 8.

Check three tiles toward specified direction. Returns a vector of up to three Tiles. This ability is unlocked at Level 8.

Attempt to attack an enemy in the tile in front of the Warrior. This is an Action. This ability is unlocked at Level 2.

Attempt to attack an enemy one tile away in specified direction. This is an Action. This ability is unlocked at Level 6.

Check the current health of the Warrior. This ability is unlocked at Level 3.

Rest and regain 10% of the Warrior’s HP. This is an Action. This ability is unlocked at Level 3.

Attempt to rescue a Captive in front of the Warrior. This is an Action. This ability is unlocked at Level 5.

Attempt to rescue a Captive one tile away in specified direction. This is an Action. This ability is unlocked at Level 6.

Rotate 180 degrees. This is an Action. This ability is unlocked at Level 7.

Fire an arrow up to three tiles in front of the Warrior. This is an Action. This ability is unlocked at Level 8.

Fire an arrow up to three tiles toward specified direction. This is an Action. This ability is unlocked at Level 8.

Some Action the Warrior has performed; None if no action has been performed.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.