|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cubeia.firebase.server.processor.Notifier
public class Notifier
| Constructor Summary | |
|---|---|
Notifier(FirebaseTable table,
Sender<ClientEvent<?>> clientRouter,
boolean useCommit)
|
|
| Method Summary | |
|---|---|
void |
broadcast(SystemMessageAction msg)
Broadcast a message to the system. |
void |
commit()
|
void |
notifyAllPlayers(java.util.Collection<? extends GameAction> actions)
Notify all players with the supplied actions. |
void |
notifyAllPlayers(java.util.Collection<? extends GameAction> actions,
boolean watchers)
Notify all players with the supplied actions. |
void |
notifyAllPlayers(GameAction action)
Notify all players and watchers with the supplied action. |
void |
notifyAllPlayers(GameAction action,
boolean watchers)
Notify all players with the supplied action. |
void |
notifyAllPlayersExceptOne(java.util.Collection<? extends GameAction> actions,
int skip)
Notify all players with the supplied actions. |
void |
notifyAllPlayersExceptOne(java.util.Collection<? extends GameAction> actions,
int skip,
boolean watchers)
Notify all players with the supplied actions. |
void |
notifyAllPlayersExceptOne(GameAction action,
int skip)
Notify all players and watchers except the given one with the supplied action. |
void |
notifyAllPlayersExceptOne(GameAction action,
int skip,
boolean watchers)
Notify all players except the given one with the supplied action. |
void |
notifyPlayer(int playerid,
java.util.Collection<? extends GameAction> actions)
Notify the given player with the supplied actions |
void |
notifyPlayer(int playerid,
GameAction action)
Notify the given player with the supplied action |
void |
sendToClient(int playerid,
java.util.Collection<? extends GameAction> actions)
Send multiple actions to the given player. |
void |
sendToClient(int playerid,
GameAction action)
Send the supplied action to the given player. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notifier(FirebaseTable table,
Sender<ClientEvent<?>> clientRouter,
boolean useCommit)
| Method Detail |
|---|
public void commit()
public void broadcast(SystemMessageAction msg)
GameNotifier
broadcast in interface GameNotifiermsg - Message to send, must not be null
public void sendToClient(int playerid,
GameAction action)
GameNotifierSend the supplied action to the given player. This sending method ignores current status of player at the table.
DO NOT use this method on player with status = TABLE_LOCAL.
sendToClient in interface GameNotifier
public void sendToClient(int playerid,
java.util.Collection<? extends GameAction> actions)
GameNotifierSend multiple actions to the given player. This sending method ignores current status of player at the table.
DO NOT use this method on player with status = TABLE_LOCAL.
sendToClient in interface GameNotifier
public void notifyPlayer(int playerid,
GameAction action)
GameNotifier
notifyPlayer in interface GameNotifier
public void notifyPlayer(int playerid,
java.util.Collection<? extends GameAction> actions)
GameNotifierNotify the given player with the supplied actions
notifyPlayer in interface GameNotifierpublic void notifyAllPlayers(GameAction action)
GameNotifier
notifyAllPlayers in interface GameNotifier
public void notifyAllPlayers(GameAction action,
boolean watchers)
GameNotifier
notifyAllPlayers in interface GameNotifierpublic void notifyAllPlayers(java.util.Collection<? extends GameAction> actions)
GameNotifierNotify all players with the supplied actions. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
notifyAllPlayers in interface GameNotifier
public void notifyAllPlayers(java.util.Collection<? extends GameAction> actions,
boolean watchers)
GameNotifierNotify all players with the supplied actions. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
notifyAllPlayers in interface GameNotifier
public void notifyAllPlayersExceptOne(GameAction action,
int skip)
GameNotifierNotify all players and watchers except the given one with the supplied action. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
notifyAllPlayersExceptOne in interface GameNotifier
public void notifyAllPlayersExceptOne(GameAction action,
int skip,
boolean watchers)
GameNotifierNotify all players except the given one with the supplied action. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
Watchers will be included if the watchers flag is set to true.
notifyAllPlayersExceptOne in interface GameNotifier
public void notifyAllPlayersExceptOne(java.util.Collection<? extends GameAction> actions,
int skip)
GameNotifierNotify all players with the supplied actions. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
notifyAllPlayersExceptOne in interface GameNotifier
public void notifyAllPlayersExceptOne(java.util.Collection<? extends GameAction> actions,
int skip,
boolean watchers)
GameNotifierNotify all players with the supplied actions. All players in this case will be all players that will need the update.
Eg. at a poker table all players are all clients at the table as well as all observers.
notifyAllPlayersExceptOne in interface GameNotifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||