GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rcssserver/src/field.cpp at master · CLSFramework/rcssserver

Expand file tree

/

field.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
91 lines (74 loc) · 2.46 KB
/

field.cpp

Copy path

File metadata and controls

91 lines (74 loc) · 2.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* -*- Mode: C++ -*-
*Header:
*File: field.C
*Author: Noda Itsuki
*Date: 1996/02/14
*EndHeader:
*/
/*
*Copyright:
Copyright (C) 1996-2000 Electrotechnical Laboratory.
Itsuki Noda, Yasuo Kuniyoshi and Hitoshi Matsubara.
Copyright (C) 2000,2001 RoboCup Soccer Server Maintainance Group.
Patrick Riley, Tom Howard, Daniel Polani, Itsuki Noda,
Mikhail Prokopenko, Jan Wendler
Copyright (C) 2002- RoboCup Soccer Simulator Maintainance Group.
This file is a part of SoccerServer.
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*EndCopyright:
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "field.h"
#include "serverparam.h"
/*
*===================================================================
*Part: Field
*===================================================================
*/
Field::Field()
: line_l( LINE_L_NAME, LINE_L_NAME_SHORT, "(Line)", "(L)",
PVector( - ServerParam::PITCH_LENGTH / 2.0, 0.0 ) ),
line_r( LINE_R_NAME, LINE_R_NAME_SHORT, "(Line)", "(L)",
PVector( + ServerParam::PITCH_LENGTH / 2.0, 0.0 ) ),
line_t( LINE_T_NAME, LINE_T_NAME_SHORT, "(Line)", "(L)",
PVector( - ServerParam::PITCH_WIDTH / 2.0, 0.0 ) ),
line_b( LINE_B_NAME, LINE_B_NAME_SHORT, "(Line)", "(L)",
PVector( + ServerParam::PITCH_WIDTH / 2.0, 0.0 ) )
{
}
Field::~Field()
{
M_goals.clear();
for ( std::vector< PObject * >::iterator i = M_landmarks.begin();
i != M_landmarks.end();
++i )
{
delete *i;
*i = static_cast< PObject * >( 0 );
}
M_landmarks.clear();
}
void
Field::addLandmark( PObject * new_obj )
{
if ( new_obj )
{
if ( new_obj->closeName() == O_TYPE_GOAL_NAME )
{
M_goals.push_back( new_obj );
}
M_landmarks.push_back( new_obj );
}
}
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.