2019-12-05 11:50:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "game.h"
|
|
|
|
|
2019-12-09 19:08:05 +01:00
|
|
|
//KEEPER
|
|
|
|
#define KEEPER_ATTACK_DISTANCE 200
|
|
|
|
#define KEEPER_ALONE_ATTACK_TIME 5000 //in millis
|
|
|
|
#define KEEPER_COMRADE_ATTACK_TIME 3000//in millis
|
|
|
|
#define KEEPER_BASE_VEL 320
|
|
|
|
#define KEEPER_VEL_MULT 1.4
|
|
|
|
#define KEEPER_BALL_BACK_ANGLE 30
|
|
|
|
|
|
|
|
|
|
|
|
class Keeper : public Game{
|
2019-12-05 11:50:58 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
Keeper();
|
2019-12-09 19:08:05 +01:00
|
|
|
private:
|
|
|
|
void realPlay() override;
|
2019-12-05 11:50:58 +01:00
|
|
|
void keeper();
|
2019-12-09 19:08:05 +01:00
|
|
|
|
|
|
|
int defSpeed, defDir;
|
|
|
|
|
|
|
|
float angle, angleX, angleY;
|
|
|
|
elapsedMillis t, toh, keeperAttackTimer;
|
|
|
|
bool keeper_tookTimer, keeper_backToGoalPost;
|
|
|
|
};
|