SPQR-Team-2019-REVAMPED/include/goalie.h

40 lines
912 B
C
Raw Normal View History

#pragma once
#include "game.h"
#include "sensors.h"
#include "data_source_camera_vshapedmirror.h"
#define TILT_MULT 1.8
#define TILT_DIST 180
#define CATCH_DIST 150
#define GOALIE_ATKSPD_LAT 255
2019-12-05 12:53:14 +01:00
#define GOALIE_ATKSPD_BAK 350
#define GOALIE_ATKSPD_FRT 345
#define GOALIE_ATKSPD_STRK 355
#define GOALIE_ATKDIR_PLUSANG1 20
#define GOALIE_ATKDIR_PLUSANG2 35
#define GOALIE_ATKDIR_PLUSANG3 40
#define GOALIE_ATKDIR_PLUSANGBAK 40
#define GOALIE_ATKDIR_PLUSANG1_COR 60
#define GOALIE_ATKDIR_PLUSANG2_COR 70
#define GOALIE_ATKDIR_PLUSANG3_COR 70
2019-12-05 12:53:14 +01:00
2020-02-12 18:53:25 +01:00
class Goalie : public Game, public PositionSysZone{
public:
Goalie();
2019-12-26 17:44:58 +01:00
Goalie(LineSystem* ls, PositionSystem* ps);
2019-12-26 17:44:58 +01:00
private:
void realPlay() override;
2019-12-26 17:44:58 +01:00
void init() override;
2020-01-22 18:51:30 +01:00
void goalie(int);
void ballBack();
void storcimentoPorta();
int atk_speed, atk_direction;
float cstorc;
2019-12-26 17:44:58 +01:00
};