Package | Description |
---|---|
client.model | |
shared.definitions | |
shared.model |
Modifier and Type | Method and Description |
---|---|
boolean |
ClientGameManager.startListening(ModelObserver listener,
ModelNotification type)
starts listening for a specific type of change
|
Modifier and Type | Method and Description |
---|---|
static ModelNotification |
ModelNotification.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelNotification[] |
ModelNotification.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ModelNotification,java.util.Set<ModelObserver>> |
NotificationCenter.listeners |
Modifier and Type | Method and Description |
---|---|
void |
NotificationCenter.add(ModelObserver listener,
ModelNotification type)
Adds a listener to a specific type
|
void |
NotificationCenter.notify(ModelNotification type)
Poke the listeners for a specific type
|
void |
NotificationCenter.remove(ModelObserver listener,
ModelNotification type)
Removes a listener from a specific type
|
boolean |
ModelSubject.startListening(ModelObserver observer,
ModelNotification typs)
starts listening for a specific type of change
|