Enum FlockEvent

Enum describing all possible events which can be received from the engine via OnFlockEventListener callback.

See Also:
OnFlockEventListener

Summary

Enum Constant Summary
ATTRIBUTEUPDATE_FAILED
          Saving attribute to server/database failed
ATTRIBUTEUPDATE_SUCCESS
          Successfully saved the attribute to server/database
AUTH_FAILED
          Technical Failure (eg no PERMISSION_INTERNET)
AUTH_REJECTED
          User/Password combination rejected by server (invalid login)
AUTH_SUCCESS
          Authentication successful, User is now signed in (authenticated)
CONNECTION_CLOSED
          Connection closed after having it previously established.
CONNECTION_ESTABLISHED
          Socket connection to gameserver successfully established
CONNECTION_FAILED
          Socket connection failed while connecting to gameserver
CREATEACCOUNT_FAILED
          Registering username at server/database failed because of a technical reason
CREATEACCOUNT_SUCCESS
          Successfully registered user account at server/database
CREATEACCOUNT_USERNAMETAKEN
          Registering username at server/database failed because the username is already in use
NEW_ATTRIBUTE
          Attributes of a player has changed
NEW_CHATMESSAGE
          Received a new chat message of one of the other participants
NEW_MESSAGE
          Received a new status message of one of the other participants
PARTICIPANT_QUIT
          One of this session's participants has quit
SESSION_STARTS
          Enough players found, start game
 
Method Summary
static FlockEvent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FlockEvent[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Details

Enum Constant Detail

CONNECTION_ESTABLISHED

public static final FlockEvent CONNECTION_ESTABLISHED
Socket connection to gameserver successfully established


CONNECTION_CLOSED

public static final FlockEvent CONNECTION_CLOSED
Connection closed after having it previously established. Closed either by server or self (FlockEngine.disconnect())


CONNECTION_FAILED

public static final FlockEvent CONNECTION_FAILED
Socket connection failed while connecting to gameserver


SESSION_STARTS

public static final FlockEvent SESSION_STARTS
Enough players found, start game


PARTICIPANT_QUIT

public static final FlockEvent PARTICIPANT_QUIT
One of this session's participants has quit


NEW_MESSAGE

public static final FlockEvent NEW_MESSAGE
Received a new status message of one of the other participants


NEW_CHATMESSAGE

public static final FlockEvent NEW_CHATMESSAGE
Received a new chat message of one of the other participants


NEW_ATTRIBUTE

public static final FlockEvent NEW_ATTRIBUTE
Attributes of a player has changed


ATTRIBUTEUPDATE_FAILED

public static final FlockEvent ATTRIBUTEUPDATE_FAILED
Saving attribute to server/database failed


ATTRIBUTEUPDATE_SUCCESS

public static final FlockEvent ATTRIBUTEUPDATE_SUCCESS
Successfully saved the attribute to server/database


AUTH_FAILED

public static final FlockEvent AUTH_FAILED
Technical Failure (eg no PERMISSION_INTERNET)


AUTH_SUCCESS

public static final FlockEvent AUTH_SUCCESS
Authentication successful, User is now signed in (authenticated)


AUTH_REJECTED

public static final FlockEvent AUTH_REJECTED
User/Password combination rejected by server (invalid login)


CREATEACCOUNT_SUCCESS

public static final FlockEvent CREATEACCOUNT_SUCCESS
Successfully registered user account at server/database


CREATEACCOUNT_FAILED

public static final FlockEvent CREATEACCOUNT_FAILED
Registering username at server/database failed because of a technical reason


CREATEACCOUNT_USERNAMETAKEN

public static final FlockEvent CREATEACCOUNT_USERNAMETAKEN
Registering username at server/database failed because the username is already in use

Method Detail

values

public static final FlockEvent[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FlockEvent c : FlockEvent.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FlockEvent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name