Files
apollo/src/org/apollo/game/model/settings/Gender.java
T

30 lines
522 B
Java

package org.apollo.game.model.settings;
/**
* An enumeration containing the two genders (male and female). This enumeration relies on the ordering of the elements
* within, which should be as follows: {@code MALE}, {@code FEMALE}.
*
* @author Graham
*/
public enum Gender {
/**
* The male gender.
*/
MALE,
/**
* The female gender.
*/
FEMALE;
/**
* Converts this gender to an integer.
*
* @return The numerical value used by the client.
*/
public int toInteger() {
return ordinal();
}
}