LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
audio_message.h
Go to the documentation of this file.
1// -*-c++-*-
2
8/*
9 *Copyright:
10
11 Copyright (C) Hidehisa AKIYAMA
12
13 This code is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Lesser General Public
15 License as published by the Free Software Foundation; either
16 version 3 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with this library; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 *EndCopyright:
28 */
29
31
32#ifndef RCSC_PLAYER_AUDIO_MESSAGE_H
33#define RCSC_PLAYER_AUDIO_MESSAGE_H
34
35#include <rcsc/game_time.h>
36#include <rcsc/types.h>
37
38#include <string>
39
40
41namespace rcsc {
42
43/*-------------------------------------------------------------------*/
49
50 int unum_;
51 double dir_;
52 std::string str_;
53
54 /*
55 \brief set default values and reserve string buffer
56 */
59 dir_( 0.0 )
60 {
61 str_.reserve( 10 );
62 }
63
64};
65
66// TODO:
67// FreeformMessage
68// CLangMessage
69
70}
71
72#endif
game time depending on RCSSServer2D Header File
player message instance
Definition: audio_message.h:48
double dir_
sender's direction
Definition: audio_message.h:51
int unum_
sender's uniform number
Definition: audio_message.h:50
std::string str_
raw message string
Definition: audio_message.h:52
the type definition set for the RCSSServer2D
constexpr int Unum_Unknown
uniform number that represents the unknown player
Definition: types.h:41