2019-12-05 11:50:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-02-29 22:10:53 +01:00
|
|
|
#include "sensors/data_source_camera_vshapedmirror.h"
|
|
|
|
#include "sensors/sensors.h"
|
|
|
|
#include "strategy_roles/game.h"
|
2019-12-05 11:50:58 +01:00
|
|
|
|
2020-02-21 13:37:32 +01:00
|
|
|
#define TILT_MULT 1.8
|
2020-10-31 15:37:38 +01:00
|
|
|
#define TILT_DIST 170
|
2020-02-21 13:37:32 +01:00
|
|
|
#define CATCH_DIST 150
|
2020-10-29 17:20:36 +01:00
|
|
|
#define GOALIE_ATKSPD_LAT 320 //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
|
2019-12-09 19:08:05 +01:00
|
|
|
#define GOALIE_ATKDIR_PLUSANG3_COR 70
|
2019-12-05 12:53:14 +01:00
|
|
|
|
2020-12-23 21:16:50 +01:00
|
|
|
class Striker : public Game{
|
2019-12-05 11:50:58 +01:00
|
|
|
|
|
|
|
public:
|
2020-11-04 17:46:14 +01:00
|
|
|
Striker();
|
|
|
|
Striker(LineSystem* ls, PositionSystem* ps);
|
2019-12-09 19:08:05 +01:00
|
|
|
|
2019-12-26 17:44:58 +01:00
|
|
|
private:
|
2019-12-09 19:08:05 +01:00
|
|
|
void realPlay() override;
|
2019-12-26 17:44:58 +01:00
|
|
|
void init() override;
|
2020-11-04 17:46:14 +01:00
|
|
|
void striker();
|
2019-12-05 13:31:21 +01:00
|
|
|
void ballBack();
|
2019-12-09 19:08:05 +01:00
|
|
|
void storcimentoPorta();
|
|
|
|
|
|
|
|
int atk_speed, atk_direction;
|
|
|
|
float cstorc;
|
2019-12-26 17:44:58 +01:00
|
|
|
|
|
|
|
|
2019-12-05 11:50:58 +01:00
|
|
|
};
|