World

class World(number: Int, population: Int, textColor: Int, type: World.Type, server: World.Server, specialty: World.Specialty) : Nillable<World?> , Validatable, Identifiable

Author

Mooshe

Constructors

World
Link copied to clipboard
fun World(number: Int, population: Int, textColor: Int, type: World.Type, server: World.Server, specialty: World.Specialty)

Types

Companion
Link copied to clipboard
object Companion
Server
Link copied to clipboard
enum Server : Enum<World.Server>
Specialty
Link copied to clipboard
enum Specialty : Enum<World.Specialty>
Type
Link copied to clipboard
enum Type : Enum<World.Type>

Functions

equals
Link copied to clipboard
open operator override fun equals(o: Any?): Boolean
hop
Link copied to clipboard
fun hop(): Boolean

Attempts to hop to this world.

id
Link copied to clipboard
open override fun id(): Int

Grabs the world number.

nil
Link copied to clipboard
open override fun nil(): World

A "null" instance. An object with no function. All methods will not evaluate to anything.

server
Link copied to clipboard
fun server(): World.Server

The Server the world is hosted on.

size
Link copied to clipboard
fun size(): Int

The amount of players in the world.

specialty
Link copied to clipboard
fun specialty(): World.Specialty

The Specialty of the world.

textColor
Link copied to clipboard
fun textColor(): Int

Get the text colour of the world speciality, can be used to determine safe or joinable worlds.

toString
Link copied to clipboard
open override fun toString(): String
type
Link copied to clipboard
fun type(): World.Type

The Type of world it is.

valid
Link copied to clipboard
open override fun valid(): Boolean

Properties

number
Link copied to clipboard
val number: Int
population
Link copied to clipboard
val population: Int
server
Link copied to clipboard
val server: World.Server
specialty
Link copied to clipboard
val specialty: World.Specialty
textColor
Link copied to clipboard
val textColor: Int
type
Link copied to clipboard
val type: World.Type