|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITeam
Interface for team component.
A correct team implementation must implement this interface.
Nested Class Summary | |
---|---|
static class |
ITeam.TeamStatus
Team is always in one of these states. |
Method Summary | |
---|---|
ITeam.TeamStatus |
getStatus()
Get the current Team status. |
Student |
getTeam()
Identify the creator of this team. |
void |
setSimulator(ISimulatorTeam t)
Set the interface to the simulator. |
void |
setStatusObserver(ITeamObserver o)
Set an observer to be notified of changes in status. |
void |
start(Side prefSide)
Start a game. |
void |
stop()
Abandon the game. |
Method Detail |
---|
void setStatusObserver(ITeamObserver o)
o
- the observerITeam.TeamStatus getStatus()
Student getTeam()
void setSimulator(ISimulatorTeam t)
t
- the team network layer implementation.void start(Side prefSide)
Precondition: simulator is connected to host.
prefSide
- my preferred sidevoid stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |