Advertisement
Guest User

Untitled

a guest
Oct 29th, 2012
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #include "Strategy.h"
  2. #define _USE_MATH_DEFINES
  3. #include <cmath>
  4.  
  5. class MyStrategy : public Strategy {
  6. public:
  7.     void Move(model::Tank self, model::World world, model::Move& move);
  8.     model::TankType SelectTank(int tank_index, int team_size);
  9. private:
  10.     int a, b, c, d, e, f;
  11. };
  12.  
  13. using namespace model;
  14.  
  15. void MyStrategy::Move(Tank self, World world, model::Move& move) {
  16.     a = 1; b = 2; c = 3; d = 4; e = 5; f = 6;
  17.     move.set_left_track_power(-1.0);
  18.     move.set_right_track_power(1.0);
  19.     move.set_turret_turn(M_PI);
  20.     move.set_fire_type(PREMIUM_PREFERRED);
  21. }
  22.  
  23. TankType MyStrategy::SelectTank(int tank_index, int team_size) {
  24.     return MEDIUM;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement