com.eoi.freya.basic
Class BasicPosition
java.lang.Object
|
+--com.eoi.freya.basic.BasicPosition
- Direct Known Subclasses:
- BasicLocation
- public class BasicPosition
- extends java.lang.Object
BasicPosition holds a JDOM XML Element that contains 2D (x,y) positional data
Field Summary |
protected org.jdom.Element |
values
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected org.jdom.Element values
BasicPosition
public BasicPosition(org.jdom.Element values)
BasicPosition
public BasicPosition(int x,
int y)
getX
public int getX()
getY
public int getY()
setXY
public void setXY(int x,
int y)
setX
public void setX(int x)
setY
public void setY(int y)
getElement
public org.jdom.Element getElement()
equals
public boolean equals(BasicPosition p)
Freya Engine, The Turn Based Game Engine
Copyright(c) 2002 Alexander Bilton
This library 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 2.1 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