public abstract class AbstractTeam extends Object
Constructor and Description |
---|
AbstractTeam(String teamName)
Connect the team to the server using the default player settings.
|
AbstractTeam(String teamName,
int port,
String hostname,
boolean hasCoach)
Connect the team to the server using specified player settings.
|
AbstractTeam(String teamName,
int port,
String hostname,
boolean hasCoach,
Properties additional)
Connect the team to the server using specified player settings.
|
Modifier and Type | Method and Description |
---|---|
void |
connect(int index)
Connect the selected player to the server.
|
void |
connectAll()
Connect all the players to the server.
|
void |
createNewCoach()
Create a new SServerCoach.
|
void |
createNewPlayers()
Create 11 SServerPlayer's.
|
abstract ControllerCoach |
getNewControllerCoach()
Gets a new ControllerCoach.
|
abstract ControllerPlayer |
getNewControllerPlayer(int i)
Gets a new ControllerPlayer.
|
Properties |
getProperties()
Returns the additional properties.
|
String |
getTeamName()
Returns the team name.
|
void |
killAll()
Kill all players and the coach (if connected).
|
int |
size()
Returns the size of the team.
|
public AbstractTeam(String teamName)
teamName
- The name of the team to connect.public AbstractTeam(String teamName, int port, String hostname, boolean hasCoach)
teamName
- The name of the team to connect.port
- The port for players to connect to.hostname
- The hostname to connect to.hasCoach
- Does this team use a coach?public AbstractTeam(String teamName, int port, String hostname, boolean hasCoach, Properties additional)
teamName
- The name of the team to connect.port
- The port for players to connect to.hostname
- The hostname to connect to.hasCoach
- Does this team use a coach?additional
- Any additionl properties you may want for your team.public String getTeamName()
public Properties getProperties()
public abstract ControllerPlayer getNewControllerPlayer(int i)
i
- The number of the player.public abstract ControllerCoach getNewControllerCoach()
public void createNewPlayers()
public void createNewCoach()
public void killAll()
public void connectAll()
public void connect(int index)
index
- The number of the player to connect.public int size()
Copyright © 2003–2015 Atan. All rights reserved.