SPQR-Team1-2020/include/strategy_roles/keeper.h

34 lines
731 B
C
Raw Normal View History

#pragma once
#include "strategy_roles/game.h"
#include "systems/position/positionsys_camera.h"
#define KEEPER_3_POINTS
//#define KEEPER_5_POINTS
#ifdef KEEPER_3_POINTS
#define KEEPER_POINT_LEFT -1
#define KEEPER_POINT_CENTER 0
#define KEEPER_POINT_RIGHT 1
#define KEEPER_POINT_LEFT_C CAMERA_GOAL_MIN_X
#define KEEPER_POINT_CENTER_C CAMERA_GOAL_X
#define KEEPER_POINT_RIGHT_C CAMERA_GOAL_MAX_X
#endif
2021-04-14 14:57:08 +02:00
#define KEEPER_ATTACK_DISTANCE 100
class Keeper : public Game{
public:
Keeper();
2019-12-26 17:44:58 +01:00
Keeper(LineSystem*, PositionSystem*);
public:
bool shouldStrike;
2019-12-26 17:44:58 +01:00
private:
void realPlay() override;
2019-12-26 17:44:58 +01:00
void init() override;
void keeper();
int point_spacing, ball_x;
};