pub fn move_target(&self) -> (u8, u8) {
        if self.walk_counter != 0 {
            match self.direction {
                Direction::Down  => (self.map_x, self.map_y + 1),
                Direction::Up    => (self.map_x, self.map_y - 1),
                Direction::Left  => (self.map_x - 1, self.map_y),
                Direction::Right => (self.map_x + 1, self.map_y),
            }
        }
        else {
            (self.map_x, self.map_y)
        }
    }
/// Returns the tile that the player is currently moving towards
Returns the tile that the player is currently moving towards
Returns the tile that the player is currently moving towards
pub fn move_target(&self) -> (u8, u8) {
        if self.walk_counter != 0 {
            match self.direction {
                Direction::Down  => (self.map_x, self.map_y + 1),
                Direction::Up    => (self.map_x, self.map_y - 1),
                Direction::Left  => (self.map_x - 1, self.map_y),
                Direction::Right => (self.map_x + 1, self.map_y),
            }
        }
        else {
            (self.map_x, self.map_y)
        }
    }
pub fn move_target ( & self ) -> ( u8 , u8 ) { if self . walk_counter != 0 { match self . direction { Direction :: Down => ( self . map_x , self . map_y + 1 ) , Direction :: Up => ( self . map_x , self . map_y - 1 ) , Direction :: Left => ( self . map_x - 1 , self . map_y ) , Direction :: Right => ( self . map_x + 1 , self . map_y ) , } } else { ( self . map_x , self . map_y ) } }
Returns the tile that the player is currently moving towards
Returns the tile that the player is currently moving towards
&self
&self