equal
deleted
inserted
replaced
24 private: |
24 private: |
25 struct AITransactionModeCommand { |
25 struct AITransactionModeCommand { |
26 TileIndex tile; |
26 TileIndex tile; |
27 uint32 p1; |
27 uint32 p1; |
28 uint32 p2; |
28 uint32 p2; |
29 uint32 flags; |
|
30 uint procc; |
29 uint procc; |
31 char *text; |
30 char *text; |
32 }; |
31 }; |
33 |
32 |
34 AIModeProc *last_mode; |
33 AIModeProc *last_mode; |
40 |
39 |
41 protected: |
40 protected: |
42 /** |
41 /** |
43 * The callback proc for Transaction mode. |
42 * The callback proc for Transaction mode. |
44 */ |
43 */ |
45 static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, int32 costs); |
44 static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, int32 costs); |
46 |
45 |
47 public: |
46 public: |
48 /** |
47 /** |
49 * Creating instance of this class switches the build mode to Transaction. |
48 * Creating instance of this class switches the build mode to Transaction. |
50 * @note when the instance is destroyed, he restores the mode that was |
49 * @note when the instance is destroyed, he restores the mode that was |