|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPosition
Defines methods required by positions in the game framework. A position instance encapsulates the information of a position in the environment. Examples are 2D or 3D coordinates. Implementations of this interface should be immutable.
| Method Summary | |
|---|---|
IPosition |
add(IPosition position)
Add the given position to this. |
Object |
clone()
Return a clone of this instance. |
IPosition |
subtract(IPosition position)
Subtract the given position from this. |
| Method Detail |
|---|
IPosition add(IPosition position)
position - The position to add.
Object clone()
IPosition subtract(IPosition position)
position - The position to subtract.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |