Quest

class Quest : INamed

Quest class holds all functionality relative to a quest

Constructors

Quest
Link copied to clipboard
fun Quest()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
isGlobal
Link copied to clipboard
fun isGlobal(): Boolean

Checks if this is a Global quest

isIndividual
Link copied to clipboard
fun isIndividual(): Boolean
toString
Link copied to clipboard
open fun toString(): String

Properties

description
Link copied to clipboard
var description: String

Description of the quest shown to players

duration
Link copied to clipboard
var duration: Int = 0

Maximum number of turns to complete the quest, 0 if there's no turn limit

influence
Link copied to clipboard
var influence: Float = 40f

Influence reward gained on quest completion

minimumCivs
Link copied to clipboard
var minimumCivs: Int = 1

Minimum number of CivInfo needed to start the quest. It is meaningful only for QuestType.Global quests type.

name
Link copied to clipboard
open override var name: String

Unique identifier name of the quest, it is also shown

type
Link copied to clipboard
var type: QuestType

QuestType: it is either Individual or Global

Sources

jvm source
Link copied to clipboard