Class MutableCoordI2
- java.lang.Object
-
- de.extio.spacecraft.shared.model.world.MutableCoordI2
-
- All Implemented Interfaces:
Coord2Conversion
,CoordI2
,HasPosition2
,Comparable<CoordI2>
public final class MutableCoordI2 extends Object implements CoordI2
Immutable implementation of CoordI2
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableCoordI2
add(int n)
MutableCoordI2
add(int dx, int dy)
MutableCoordI2
add(HasPosition2 delta)
static MutableCoordI2
create()
static MutableCoordI2
create(int x, int y)
static MutableCoordI2
create(CoordD2 other)
static MutableCoordI2
create(HasPosition2 other)
MutableCoordI2
divide(int n)
MutableCoordI2
divide(int dx, int dy)
MutableCoordI2
divide(HasPosition2 delta)
boolean
equals(Object obj)
int
getX()
int
getY()
int
hashCode()
MutableCoordI2
multiply(int n)
MutableCoordI2
multiply(int dx, int dy)
MutableCoordI2
multiply(HasPosition2 delta)
void
setX(int x)
MutableCoordI2
setXY(int x, int y)
MutableCoordI2
setXY(HasPosition2 other)
void
setY(int y)
MutableCoordI2
substract(int n)
MutableCoordI2
substract(int dx, int dy)
MutableCoordI2
substract(HasPosition2 delta)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.model.world.Coord2Conversion
toImmutableCoordD2, toImmutableCoordI2, toMutableCoordD2, toMutableCoordI2, toVNorm
-
Methods inherited from interface de.extio.spacecraft.shared.model.world.CoordI2
compareTo, getPosition
-
-
-
-
Method Detail
-
create
public static MutableCoordI2 create()
-
create
public static MutableCoordI2 create(int x, int y)
-
create
public static MutableCoordI2 create(HasPosition2 other)
-
create
public static MutableCoordI2 create(CoordD2 other)
-
setXY
public MutableCoordI2 setXY(HasPosition2 other)
-
setXY
public MutableCoordI2 setXY(int x, int y)
-
add
public MutableCoordI2 add(HasPosition2 delta)
-
add
public MutableCoordI2 add(int dx, int dy)
-
add
public MutableCoordI2 add(int n)
-
substract
public MutableCoordI2 substract(HasPosition2 delta)
-
substract
public MutableCoordI2 substract(int dx, int dy)
-
substract
public MutableCoordI2 substract(int n)
-
multiply
public MutableCoordI2 multiply(HasPosition2 delta)
-
multiply
public MutableCoordI2 multiply(int dx, int dy)
-
multiply
public MutableCoordI2 multiply(int n)
-
divide
public MutableCoordI2 divide(HasPosition2 delta)
-
divide
public MutableCoordI2 divide(int dx, int dy)
-
divide
public MutableCoordI2 divide(int n)
-
-