SPQR-Team-2019-REVAMPED/include/strategy_roles/precision_shooter.h

29 lines
615 B
C
Raw Normal View History

2021-05-13 08:38:20 +02:00
#pragma once
#include "sensors/data_source_camera_vshapedmirror.h"
#include "sensors/sensors.h"
#include "strategy_roles/game.h"
#define PS_ATTACK_DISTANCE 110
#define PS_TILT_STOP_DISTANCE 140
#define PS_PLUSANG 55
2021-05-13 20:40:15 +02:00
#define PS_PLUSANG_VISIONCONE 10
2021-05-13 08:38:20 +02:00
class PrecisionShooter : public Game{
public:
PrecisionShooter();
PrecisionShooter(LineSystem* ls, PositionSystem* ps);
private:
void realPlay() override;
void init() override;
void striker();
int tilt();
int atk_speed, atk_direction, atk_tilt;
float cstorc;
bool gotta_tilt;
};