Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AccountBadge(val name: String, val description: String, val imageUrl: String)

A displayed account badge.

Link copied to clipboard
@Serializable
data class AccountInformation(val creation: Instant, val loyaltyTitle: String?, val position: String?)

Information about an account.

Link copied to clipboard
interface BaseCharacter

Base interface for characters.

Link copied to clipboard
@Serializable
data class Character(val name: String, val title: String?, val formerNames: List<String>, val unlockedTitles: Int, val sex: Sex, val vocation: Vocation, val level: Int, val achievementPoints: Int, val world: String, val formerWorld: String?, val residence: String, val marriedTo: String?, val houses: List<CharacterHouse>, val guildMembership: GuildMembership?, val lastLogin: Instant?, val position: String?, val comment: String?, val isPremium: Boolean, val isRecentlyTraded: Boolean, val deletionDate: Instant?, val badges: List<AccountBadge>, val achievements: List<DisplayedAchievement>, val deaths: List<Death>, val accountInformation: AccountInformation?, val otherCharacters: List<OtherCharacter>) : BaseCharacter, CharacterLevel

Represents the character information available on Tibia.com.

Link copied to clipboard
@Serializable
data class CharacterHouse(val name: String, val houseId: Int, val town: String, val paidUntil: LocalDate, val world: String) : BaseHouse

A house owned by a Character.

Link copied to clipboard
interface CharacterLevel

A character with a level attribute.

Link copied to clipboard
@Serializable
data class Death(val timestamp: Instant, val level: Int, val killers: List<DeathParticipant>, val assists: List<DeathParticipant>)

A death by a Character.

Link copied to clipboard
@Serializable
data class DeathParticipant(val name: String, val isPlayer: Boolean, val summon: String?, val isTraded: Boolean)

Represents a participant listed in a death.

Link copied to clipboard
@Serializable
data class DisplayedAchievement(val name: String, val grade: Int, val isSecret: Boolean)

The achievements chosen to be displayed for a Character.

Link copied to clipboard
@Serializable
data class GuildMembership(val name: String, val rank: String) : BaseGuild

The guild a Character belongs to.

Link copied to clipboard
@Serializable
data class GuildMembershipWithTitle(val name: String, val rank: String, val title: String?) : BaseGuild

The guild a Character belongs to.

Link copied to clipboard
@Serializable
data class OtherCharacter(val name: String, val world: String, val isMain: Boolean, val isOnline: Boolean, val isDeleted: Boolean, val isRecentlyTraded: Boolean, val position: String?) : BaseCharacter

Additional character listed in a Character's information.