|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.view.ClientObjectFactory
A small and dump factory that creates client objects. It can create one kind player model (includes the weapon) and one bullet model. That's sufficient for this example "game" but not enough for a real one.
Field Summary | |
static int |
BULLET
Type: bullet |
static int |
PLAYER
Type: player |
Method Summary | |
ClientObject |
create(int type)
Creates a new vlient object of the given type. |
static ClientObjectFactory |
getInstance()
Get the instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PLAYER
public static final int BULLET
Method Detail |
public static ClientObjectFactory getInstance()
public ClientObject create(int type)
type
- the type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |