Struct quicksilver::geom::Tilemap [] [src]

pub struct Tilemap<T: Clone> { /* fields omitted */ }

A grid of Tile values

Methods

impl<T: Clone> Tilemap<T>
[src]

[src]

Create a map full of empty, non-solid tiles of a given size

[src]

Create a map with pre-filled data

[src]

Get the width of the map

[src]

Get the height of the map

[src]

Get the size of the map

[src]

Get the region the map takes up

[src]

Get the width of an individual tile

[src]

Get the height of an individual tile

[src]

Get the size of a tile

[src]

Check if a point is within the map bounds

[src]

Checks if a shape is valid in its entirety

[src]

Get the tile found at a given point, if it is valid

[src]

Get a mutable reference to a tile at a given point, if it is valid

[src]

Set the value at a given point

[src]

Find if a point's tile is empty

[src]

Finds if the area taken by a shape is empty

[src]

Align a given X value to the leftmost edge of a tile

[src]

Align a given X value to the rightmost edge of a tile

[src]

Align a given Y value to the topmost edge of a tile

[src]

Align a given Y value to the bottommost edge of a tile

[src]

Find the furthest a shape can move along a vector, and what its future speed should be

[src]

Convert a Tilemap into a map of a different type

Trait Implementations

impl<T: Clone + Clone> Clone for Tilemap<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more