public class NetGame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
id |
(package private) java.util.List<NetPlayer> |
netPlayers |
(package private) java.lang.String |
title |
Constructor and Description |
---|
NetGame()
Default constructor, sets title to null, id to -1, and
instantiates netPlayers to new arraylist
|
Modifier and Type | Method and Description |
---|---|
int |
getId() |
java.util.List<NetPlayer> |
getNetPlayers() |
java.lang.String |
getTitle() |
void |
setId(int id) |
void |
setNetPlayers(java.util.List<NetPlayer> netPlayers) |
void |
setTitle(java.lang.String title) |
java.lang.String title
int id
java.util.List<NetPlayer> netPlayers
public NetGame()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to setpublic int getId()
public void setId(int id)
id
- the id to setpublic java.util.List<NetPlayer> getNetPlayers()
public void setNetPlayers(java.util.List<NetPlayer> netPlayers)
netPlayers
- the netPlayers to set