mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
30 lines
522 B
Java
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();
|
|
}
|
|
|
|
} |