[−][src]Struct pokemon_rust::map::MapHandler

pub struct MapHandler {
    loaded_maps: HashMap<String, Map>,
    next_character_id: usize,
    characters: HashMap<CharacterId, CharacterData>,
}

Fields

loaded_maps: HashMap<String, Map>next_character_id: usizecharacters: HashMap<CharacterId, CharacterData>

Methods

impl MapHandler[src]

pub fn get_forward_tile(
    &self,
    facing_direction: &Direction,
    tile_data: &TileData
) -> TileData
[src]

pub fn is_tile_blocked(&self, tile_data: &TileData) -> bool[src]

pub fn get_action_at(&self, tile_data: &TileData) -> Option<ValidatedGameAction>[src]

pub fn get_script(&self, map_id: &MapId, script_index: usize) -> &GameScript[src]

pub fn get_map_scripts<'a>(
    &'a self,
    map_id: &'a MapId,
    kind: MapScriptKind
) -> impl Iterator<Item = ScriptEvent> + 'a
[src]

pub fn get_nearby_connections(
    &self,
    tile_data: &TileData
) -> impl Iterator<Item = (&MapCoordinates, &MapConnection)>
[src]

pub fn make_map_id(&self, map_id: String) -> MapId[src]

pub fn register_npc(
    &mut self,
    map_id: &MapId,
    position: MapCoordinates,
    entity: Entity
) -> CharacterId
[src]

pub fn get_character_id_by_entity(&self, entity: Entity) -> CharacterId[src]

pub fn get_character_by_id(&self, character_id: CharacterId) -> Entity[src]

pub fn map_to_world_coordinates(
    &self,
    map_id: &MapId,
    tile: &MapCoordinates
) -> WorldCoordinates
[src]

pub fn mark_tile_as_solid(&mut self, tile_data: &TileData)[src]

pub fn remove_solid_mark(&mut self, tile_data: &TileData)[src]

pub fn get_character_current_map(&self, character_id: CharacterId) -> &MapId[src]

pub fn get_character_natural_map(&self, character_id: CharacterId) -> &MapId[src]

pub fn change_npc_tile(&mut self, from: &TileData, to: &TileData)[src]

Auto Trait Implementations

impl RefUnwindSafe for MapHandler

impl Send for MapHandler

impl Sync for MapHandler

impl Unpin for MapHandler

impl UnwindSafe for MapHandler

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Any for T where
    T: Any, 

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,