2019-12-05 11:50:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-02-29 22:10:53 +01:00
|
|
|
#include "strategy_roles/game.h"
|
2021-03-22 14:03:53 +01:00
|
|
|
#include "systems/position/positionsys_camera.h"
|
2019-12-05 11:50:58 +01:00
|
|
|
|
2021-03-22 14:03:53 +01:00
|
|
|
#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
|
|
|
|
#define KEEPER_ATTACK_DISTANCE 120
|
2019-12-09 19:08:05 +01:00
|
|
|
|
|
|
|
class Keeper : public Game{
|
2019-12-05 11:50:58 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
Keeper();
|
2019-12-26 17:44:58 +01:00
|
|
|
Keeper(LineSystem*, PositionSystem*);
|
2021-03-22 14:03:53 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
bool shouldStrike;
|
2019-12-26 17:44:58 +01:00
|
|
|
|
2019-12-09 19:08:05 +01:00
|
|
|
private:
|
|
|
|
void realPlay() override;
|
2019-12-26 17:44:58 +01:00
|
|
|
void init() override;
|
2019-12-05 11:50:58 +01:00
|
|
|
void keeper();
|
2019-12-09 19:08:05 +01:00
|
|
|
|
2021-02-22 18:43:43 +01:00
|
|
|
int point_spacing, ball_x;
|
2019-12-09 19:08:05 +01:00
|
|
|
};
|