Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/robocode/robots/sampleteam/Point.java @ 13019

Last change on this file since 13019 was 13019, checked in by gkronber, 9 years ago

#2069: added necessary robocode files to project to make sure that the robocode problem is self-contained (only a java installation is necessary)

File size: 708 bytes
Line 
1/**
2 * Copyright (c) 2001-2014 Mathew A. Nelson and Robocode contributors
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://robocode.sourceforge.net/license/epl-v10.html
7 */
8package sampleteam;
9
10
11/**
12 * Point - a serializable point class
13 */
14public class Point implements java.io.Serializable {
15
16  private static final long serialVersionUID = 1L;
17
18  private double x = 0.0;
19  private double y = 0.0;
20
21  public Point(double x, double y) {
22    this.x = x;
23    this.y = y;
24  }
25
26  public double getX() {
27    return x;
28  }
29
30  public double getY() {
31    return y;
32  }
33}
Note: See TracBrowser for help on using the repository browser.