|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infinitewisdom.model.UnitController
ServerCommandParserIF
instead.
@Deprecated public class UnitController
A Player commands its units through this class. You shouldn't command OwnedUnits directly, as it will
hamper code maintainability.
This Class doesn't do anything useful yet, however in a future client-server version
might be the mediator between the client and server. (However in that case unit IDs must be
used, not references. And a similar class will exist both in client and server side and talk
to each other via RMI.)
However till it happens, it provides a way to migrate legacy, locally running Player code to the
(yet to be implemented) client-server framework version.
Nested Class Summary | |
---|---|
static class |
UnitController.InfWException
Deprecated. |
Constructor Summary | |
---|---|
UnitController()
Deprecated. |
Method Summary | |
---|---|
void |
commandAttack(UnitIF u,
UnitIF enemy)
Deprecated. |
void |
commandMove(UnitIF u,
Vec2f p)
Deprecated. |
void |
commandStop(UnitIF u)
Deprecated. |
Vec2f |
getGoal(UnitIF u)
Deprecated. |
void |
setPlayer(PlayerIF p)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitController()
Method Detail |
---|
public void setPlayer(PlayerIF p)
public void commandMove(UnitIF u, Vec2f p)
public void commandAttack(UnitIF u, UnitIF enemy)
public void commandStop(UnitIF u)
public Vec2f getGoal(UnitIF u)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |