pub fn inner_apply_move(
        &self,
        map: &Map,
        players: &[Player],
        npcs: &[Box<dyn Enemy>],
        x_add: i64,
        y_add: i64,
    ) -> (i64, i64) {
        if self.action.movement.is_none() {
            (0, 0)
        } else {
            self.inner_check_move(
                map,
                players,
                npcs,
                self.action.direction,
                self.action.secondary,
                x_add,
                y_add,
            )
        }
    }
/// `x_add` and `y_add` are used in case you want to move in two directions at once, so when
/// checking the second direction, you actually already "moved" and don't check a bad position.
`x_add` and `y_add` are used in case you want to move in two directions at once, so when
checking the second direction, you actually already "moved" and don't check a bad position.
` x_add ` and ` y_add ` are used in case you want to move in two directions at once so when checking the second direction you actually already " moved " and don ' t check a bad position .
pub fn inner_apply_move(
        &self,
        map: &Map,
        players: &[Player],
        npcs: &[Box<dyn Enemy>],
        x_add: i64,
        y_add: i64,
    ) -> (i64, i64) {
        if self.action.movement.is_none() {
            (0, 0)
        } else {
            self.inner_check_move(
                map,
                players,
                npcs,
                self.action.direction,
                self.action.secondary,
                x_add,
                y_add,
            )
        }
    }
pub fn inner_apply_move ( & self , map : & Map , players : & [ Player ] , npcs : & [ Box < dyn Enemy > ] , x_add : i64 , y_add : i64 , ) -> ( i64 , i64 ) { if self . action . movement . is_none ( ) { ( 0 , 0 ) } else { self . inner_check_move ( map , players , npcs , self . action . direction , self . action . secondary , x_add , y_add , ) } }
`x_add` and `y_add` are used in case you want to move in two directions at once, so when
checking the second direction, you actually already "moved" and don't check a bad position.
` x_add ` and ` y_add ` are used in case you want to move in two directions at once so when checking the second direction you actually already " moved " and don ' t check a bad position .
&self
map
&Map
players
&[Player]
npcs
&[Box<dyn Enemy>]
x_add
i64
y_add
i64