Class: Studio::Quest

Inherits:
Object show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing an Quest

Defined Under Namespace

Classes: Earning, Objective

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db_symbol ⇒ Symbol (readonly)

db_symbol of the quest

Returns:

  • (Symbol)


1078
1079
1080
# File 'docs/3_Studio.rb', line 1078

def db_symbol
  @db_symbol
end

#earnings ⇒ Array<Earning> (readonly)

List of all the earning from completing the quest

Returns:



1090
1091
1092
# File 'docs/3_Studio.rb', line 1090

def earnings
  @earnings
end

#id ⇒ Integer (readonly)

ID of the quest

Returns:

  • (Integer)


1075
1076
1077
# File 'docs/3_Studio.rb', line 1075

def id
  @id
end

#is_primary ⇒ Boolean (readonly)

Is the quest primary

Returns:

  • (Boolean)


1081
1082
1083
# File 'docs/3_Studio.rb', line 1081

def is_primary
  @is_primary
end

#objectives ⇒ Array<Objective> (readonly)

List of objective to complete the quest

Returns:



1087
1088
1089
# File 'docs/3_Studio.rb', line 1087

def objectives
  @objectives
end

#resolution ⇒ Symbol (readonly)

Kind of quest resolution process (:default or :progressive)

Returns:

  • (Symbol)


1084
1085
1086
# File 'docs/3_Studio.rb', line 1084

def resolution
  @resolution
end

Instance Method Details

#description ⇒ String Also known as: descr

Get the text description of the ability

Returns:



1093
1094
# File 'docs/3_Studio.rb', line 1093

def description
end

#name ⇒ String

Get the text name of the ability

Returns:



1098
1099
# File 'docs/3_Studio.rb', line 1098

def name
end