2020-12-23 21:25:52 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "sensors/data_source_camera_vshapedmirror.h"
|
|
|
|
#include "sensors/sensors.h"
|
|
|
|
#include "strategy_roles/game.h"
|
|
|
|
|
2021-03-01 16:00:11 +01:00
|
|
|
#define TARGET_DIST 120
|
|
|
|
#define ATTACK_DIST 150
|
|
|
|
#define ANGLE_SHIFT_STEP 5
|
|
|
|
#define STRIKER_SPD 80
|
2020-12-23 21:25:52 +01:00
|
|
|
|
|
|
|
class StrikerTest : public Game{
|
|
|
|
|
|
|
|
public:
|
|
|
|
StrikerTest();
|
|
|
|
StrikerTest(LineSystem* ls, PositionSystem* ps);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void realPlay() override;
|
|
|
|
void init() override;
|
|
|
|
void striker();
|
|
|
|
void ballBack();
|
|
|
|
|
|
|
|
int atk_speed, atk_direction;
|
|
|
|
|
|
|
|
};
|