infinitewisdom.model
Class UnitController

java.lang.Object
  extended by infinitewisdom.model.UnitController

Deprecated. Use ServerCommandParserIF instead.

@Deprecated
public class UnitController
extends java.lang.Object

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

UnitController

public UnitController()
Deprecated. 
Method Detail

setPlayer

public void setPlayer(PlayerIF p)
Deprecated. 

commandMove

public void commandMove(UnitIF u,
                        Vec2f p)
Deprecated. 

commandAttack

public void commandAttack(UnitIF u,
                          UnitIF enemy)
Deprecated. 

commandStop

public void commandStop(UnitIF u)
Deprecated. 

getGoal

public Vec2f getGoal(UnitIF u)
Deprecated.