Struct movingai::MovingAiMap [] [src]

pub struct MovingAiMap { /* fields omitted */ }

An immutable representation of a MovingAI map.

Methods

impl MovingAiMap
[src]

[src]

Create a new MovingAIMap object from basic components.

Arguments

  • map_type: The type of map you are registering. Usually octile.
  • height: the height of the map.
  • width: the width of the map.
  • map: A vector representing the map in row-major order.

Panics

The new call will panic id the size of the map vector is different from heigth*width.

Trait Implementations

impl Map2D<char> for MovingAiMap
[src]

[src]

Every Map2D must have a width.

[src]

Every Map2D must have an height.

[src]

In every Map2D must be possible to get an item. Read more

[src]

Check if the given coordinates are out of bound. Read more

[src]

Check if a tile in the map can be traversed. Read more

[src]

Check if a tile in the map can be traversed coming from the from tile. Read more

[src]

Return an iterator returning all the coordinates in the map in row-major order. Read more

[src]

Return the number of free states of a map. Read more

[src]

Return the list of accessible neighbors of a tile.

impl Index<Coords2D> for MovingAiMap
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.