// // game.h // nation_war // // Created by Saturneric on 17/1/17. // Copyright © 2017年 Bakantu Eric. All rights reserved. // #ifndef game_h #define game_h #include #include #include #include #include #include "nation.h" #include "factory.h" #include "army.h" #include "land.h" #include "event.h" using namespace std; extern list ftc_vec; extern list ntn_vec; extern list land_vec; extern list amy_vec; extern list event_vec; extern list route_vec; class route { public: class land *f_lnd; class land *t_lnd; int distance; route(class land *f_lnd, class land *t_lnd, int distance); }; class armymove { class land *templnd; class land *tolnd; int lastdistance; class army *parmy; list::iterator proute; list way; public: int golnd(void); armymove(class land *templand, class land *toland, listway, class army *parmy); }; int getway(class land *f_lnd, class land *t_lnd, int tdistance, listtway); list findway(class land *f_lnd, class land *t_lnd); int addarmymove(class land *templand, class land *toland, class army *parmy); #endif /* game_h */ int engine(void);