@@ -30,39 +30,35 @@ typedef struct
30
30
31
31
class MapManager
32
32
{
33
- private:
34
- unsigned short steps_map[MAZESIZE_X][MAZESIZE_Y]; // 歩数マップ
35
- t_wall wall[MAZESIZE_X][MAZESIZE_Y]; // 壁の情報を格納する構造体配列
36
- t_position mypos;
37
- short goal_mx, goal_my;
38
-
39
33
public:
40
- void view (char view_weight_f);
34
+ MapManager ();
35
+
41
36
void positionInit (void );
42
- void setMyPos (char x, char y, t_direction_glob dir);
43
37
void setMyPosDir (t_direction_glob dir);
44
38
short getMyPosX (void );
45
39
short getMyPosY (void );
46
40
t_direction_glob getMyPosDir (void );
47
41
char getWallData (unsigned char x, unsigned char y, t_direction_glob dir);
48
42
void setWallData (unsigned char x, unsigned char y, t_direction_glob dir, char data);
49
- unsigned short getStepMapData (unsigned char x, unsigned char y);
50
43
char getGoalX (void );
51
44
char getGoalY (void );
52
45
void setGoalX (short data);
53
46
void setGoalY (short data);
54
-
55
- void makeMap2 (int x, int y);
56
- void makeSearchMap (int x, int y);
57
- t_direction getNextDir2 (short x, short y, t_direction_glob * dir);
58
- t_direction getNextDir (char x, char y, t_direction_glob * dir);
59
47
void axisUpdate (void );
60
48
void nextDir (t_direction dir);
61
- void wallch (int x, int y, int x2, int y2);
62
49
void setWall (bool IS_SEN_FR, bool IS_SEN_R, bool IS_SEN_L);
63
- int getPriority (unsigned char x, unsigned char y, t_direction_glob dir);
50
+ t_direction getNextDir (char x, char y, t_direction_glob * dir);
51
+ t_direction getNextDir2 (short x, short y, t_direction_glob * dir);
64
52
65
- MapManager ();
53
+ private:
54
+ unsigned short steps_map[MAZESIZE_X][MAZESIZE_Y]; // 歩数マップ
55
+ t_wall wall[MAZESIZE_X][MAZESIZE_Y]; // 壁の情報を格納する構造体配列
56
+ t_position mypos;
57
+ short goal_mx, goal_my;
58
+
59
+ void makeSearchMap (int x, int y);
60
+ void makeMap2 (int x, int y);
61
+ int getPriority (unsigned char x, unsigned char y, t_direction_glob dir);
66
62
};
67
63
68
64
#endif // MAP_MANAGER_H_
0 commit comments