pub struct Tile { /* private fields */ }Expand description
Settings for a specific tile in a given tileset.
Implementations§
Source§impl Tile
impl Tile
pub fn new(tag_number: u8, options: u32) -> Self
Sourcepub fn tag_number(&self) -> u8
pub fn tag_number(&self) -> u8
A value that can be assigned to tiles and retrieved via the SetVariablePlus command.
Sourcepub fn tag_number_mut(&mut self) -> &mut u8
pub fn tag_number_mut(&mut self) -> &mut u8
Mutable reference accessor for Tile::tag_number.
Sourcepub fn down_not_passable(&self) -> bool
pub fn down_not_passable(&self) -> bool
Whether the tile can be passed from its downside.
Sourcepub fn down_not_passable_mut(&mut self) -> &mut bool
pub fn down_not_passable_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::down_not_passable.
Sourcepub fn left_not_passable(&self) -> bool
pub fn left_not_passable(&self) -> bool
Whether the tile can be passed from its left side.
Sourcepub fn left_not_passable_mut(&mut self) -> &mut bool
pub fn left_not_passable_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::left_not_passable.
Sourcepub fn right_not_passable(&self) -> bool
pub fn right_not_passable(&self) -> bool
Whether the tile can be passed from its right side.
Sourcepub fn right_not_passable_mut(&mut self) -> &mut bool
pub fn right_not_passable_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::right_not_passable.
Sourcepub fn up_not_passable(&self) -> bool
pub fn up_not_passable(&self) -> bool
Whether the tile can be passed from its upside.
Sourcepub fn up_not_passable_mut(&mut self) -> &mut bool
pub fn up_not_passable_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::up_not_passable.
Sourcepub fn always_above_character(&self) -> bool
pub fn always_above_character(&self) -> bool
If true, this tile will always be displayed above a character.
Sourcepub fn always_above_character_mut(&mut self) -> &mut bool
pub fn always_above_character_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::always_above_character.
Sourcepub fn bottom_half_translucent(&self) -> bool
pub fn bottom_half_translucent(&self) -> bool
If true, the bottom half of this tile will be translucent.
Sourcepub fn bottom_half_translucent_mut(&mut self) -> &mut bool
pub fn bottom_half_translucent_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::bottom_half_translucent.
Sourcepub fn conceal_character_behind(&self) -> bool
pub fn conceal_character_behind(&self) -> bool
If true, this tile will be displayed above characters with a smaller or equal y position.
Sourcepub fn conceal_character_behind_mut(&mut self) -> &mut bool
pub fn conceal_character_behind_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::conceal_character_behind.
Sourcepub fn match_passable_under(&self) -> bool
pub fn match_passable_under(&self) -> bool
If true, whether this tile is passable or not depends on the tile on the lower layer.
Sourcepub fn match_passable_under_mut(&mut self) -> &mut bool
pub fn match_passable_under_mut(&mut self) -> &mut bool
Mutable reference accessor for Tile::match_passable_under.