Files
@ r10599:6979732362f7
Branch filter:
Location: cpp/openttd-patchpack/source/src/ai/default/default.h - annotation
r10599:6979732362f7
1.3 KiB
text/x-c
(svn r14882) -Change: move widgets related files to their own category (MSVC)
r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r8236:a2ecfe92ab23 r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8236:a2ecfe92ab23 r10207:a1fc2f2a33db r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r10207:a1fc2f2a33db r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r8229:4262f8715f60 r10207:a1fc2f2a33db r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 | /* $Id$ */
/** @file default.h The original AI. */
#ifndef DEFAULT_H
#define DEFAULT_H
#include "../../direction_type.h"
#include "../../vehicle_type.h"
#include "../../rail_type.h"
void AiDoGameLoop(Company *c);
struct AiBuildRec {
TileIndex spec_tile;
TileIndex use_tile;
byte rand_rng;
byte cur_building_rule;
byte unk6;
byte unk7;
byte buildcmd_a;
byte buildcmd_b;
byte direction;
CargoID cargo;
};
struct CompanyAI {
byte state;
byte tick; ///< Used to determine how often to move
uint32 state_counter; ///< Can hold tile index!
uint16 timeout_counter;
byte state_mode;
byte banned_tile_count;
RailTypeByte railtype_to_use;
CargoID cargo_type;
byte num_wagons;
byte build_kind;
byte num_build_rec;
byte num_loco_to_build;
byte num_want_fullload;
byte route_type_mask;
TileIndex start_tile_a;
TileIndex cur_tile_a;
DiagDirectionByte cur_dir_a;
DiagDirectionByte start_dir_a;
TileIndex start_tile_b;
TileIndex cur_tile_b;
DiagDirectionByte cur_dir_b;
DiagDirectionByte start_dir_b;
Vehicle *cur_veh; ///< only used by some states
AiBuildRec src, dst, mid1, mid2;
VehicleID wagon_list[9];
byte order_list_blocks[20];
TileIndex banned_tiles[16];
byte banned_val[16];
};
extern CompanyAI _companies_ai[MAX_COMPANIES];
#endif
|