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

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

A grid of Tile values

Methods

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

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

Create a map with pre-filled data

Get the width of the map

Get the height of the map

Get the size of the map

Get the region the map takes up

Get the width of an individual tile

Get the height of an individual tile

Get the size of a tile

Check if a point is within the map bounds

Checks if a shape is valid in its entirety

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

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

Set the value at a given point

Find if a point's tile is empty

Finds if the area taken by a shape is empty

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

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

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

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

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

Convert a Tilemap into a map of a different type

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Tilemap<T> where
    T: Send

impl<T> Sync for Tilemap<T> where
    T: Sync