forked from Cryz/battle_royale_sim
texts
This commit is contained in:
@@ -97,16 +97,16 @@ class BrSimMap():
|
||||
return self.game_map
|
||||
|
||||
def get_player_available_directions(self, Player):
|
||||
coord_x, coord_y= Player.get_player_coordinates()
|
||||
coord_x, coord_y= Player.get_coordinates()
|
||||
avail_directions= []
|
||||
if self.get_map_matrix()[coord_x - 1][coord_y] not in [self.mountain_sym]:
|
||||
avail_directions.append((-1, 0, 'left'))
|
||||
avail_directions.append((-1, 0, 'sinistra'))
|
||||
if self.get_map_matrix()[coord_x + 1][coord_y] not in [self.mountain_sym]:
|
||||
avail_directions.append((1, 0, 'right'))
|
||||
avail_directions.append((1, 0, 'destra'))
|
||||
if self.get_map_matrix()[coord_x][coord_y - 1] not in [self.mountain_sym]:
|
||||
avail_directions.append((0, -1, 'up'))
|
||||
avail_directions.append((0, -1, 'su'))
|
||||
if self.get_map_matrix()[coord_x][coord_y + 1] not in [self.mountain_sym]:
|
||||
avail_directions.append((0, 1, 'bottom'))
|
||||
avail_directions.append((0, 1, 'giu\''))
|
||||
return avail_directions
|
||||
|
||||
def get_renderized_map(self):
|
||||
|
||||
Reference in New Issue
Block a user