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