Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
handler.h
1
2
/***************************************************************************
3
* handler.h - World Info Handler
4
*
5
* Created: Sun Jan 14 18:07:04 2007
6
* Copyright 2006-2007 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef __NETCOMM_WORLDINFO_HANDLER_H_
25
#define __NETCOMM_WORLDINFO_HANDLER_H_
26
27
#include <netcomm/worldinfo/enums.h>
28
29
namespace
fawkes {
30
31
class
WorldInfoHandler
32
{
33
public
:
34
virtual
~WorldInfoHandler
();
35
36
virtual
void
pose_rcvd
(
const
char
*from_host,
37
float
x,
float
y,
float
theta,
38
float
*covariance) = 0;
39
40
virtual
void
velocity_rcvd
(
const
char
*from_host,
float
vel_x,
41
float
vel_y,
float
vel_theta,
float
*covariance) = 0;
42
43
virtual
void
ball_pos_rcvd
(
const
char
*from_host,
44
bool
visible,
int
visibility_history,
45
float
dist,
float
bearing,
float
slope,
46
float
*covariance) = 0;
47
48
virtual
void
global_ball_pos_rcvd
(
const
char
*from_host,
49
bool
visible,
int
visibility_history,
50
float
x,
float
y,
float
z,
51
float
*covariance) = 0;
52
53
virtual
void
ball_velocity_rcvd
(
const
char
*from_host,
54
float
vel_x,
float
vel_y,
float
vel_z,
55
float
*covariance) = 0;
56
57
virtual
void
global_ball_velocity_rcvd
(
const
char
*from_host,
58
float
vel_x,
float
vel_y,
float
vel_z,
59
float
*covariance) = 0;
60
61
virtual
void
opponent_pose_rcvd
(
const
char
*from_host,
62
unsigned
int
uid,
float
distance
,
63
float
bearing,
float
*covariance) = 0;
64
65
virtual
void
opponent_disapp_rcvd
(
const
char
*from_host,
unsigned
int
uid) = 0;
66
67
virtual
void
gamestate_rcvd
(
const
char
*from_host,
68
unsigned
int
game_state,
69
worldinfo_gamestate_team_t
state_team,
70
unsigned
int
score_cyan,
unsigned
int
score_magenta,
71
worldinfo_gamestate_team_t
our_team,
72
worldinfo_gamestate_goalcolor_t
our_goal_color,
73
worldinfo_gamestate_half_t
half) = 0;
74
75
virtual
void
penalty_rcvd
(
const
char
*from_host,
76
unsigned
int
player,
unsigned
int
penalty,
77
unsigned
int
seconds_remaining) = 0;
78
79
};
80
81
}
// end namespace fawkes
82
83
84
#endif
src
libs
netcomm
worldinfo
handler.h
Generated by
1.8.3.1