struct DotPrison::Prison::Object::Prisoner::ExperienceStats

Defined in:

dot_prison/prison/object/prisoner.cr

Constructors

Instance Method Summary

Instance methods inherited from struct DotPrison::Consumer

initialize initialize, table : DotPrison::Table table

Constructor methods inherited from struct DotPrison::Consumer

new new

Instance methods inherited from class Object

to_prison to_prison

Constructor Detail

def self.new(table : DotPrison::Table) #

[View source]

Instance Method Detail

def class : Float64 #
Description copied from class Object

Returns the runtime Class of an object.

1.class       # => Int32
"hello".class # => String

Compare it with typeof, which returns the compile-time type of an object:

random_value = rand # => 0.627423
value = random_value < 0.5 ? 1 : "hello"
value         # => "hello"
value.class   # => String
typeof(value) # => Int32 | String

[View source]
def class=(v : Float) #

[View source]
def class=(v : Int) #

[View source]
def exercise : Float64 #

[View source]
def exercise=(v : Float) #

[View source]
def exercise=(v : Int) #

[View source]
def freetime : Float64 #

[View source]
def freetime=(v : Float) #

[View source]
def freetime=(v : Int) #

[View source]
def kod : Float64 #

[View source]
def kod=(v : Float) #

[View source]
def kod=(v : Int) #

[View source]
def locked_down : Float64 #

[View source]
def locked_down=(v : Float) #

[View source]
def locked_down=(v : Int) #

[View source]
def misconduct : Float64 #

[View source]
def misconduct=(v : Float) #

[View source]
def misconduct=(v : Int) #

[View source]
def mood_bad : Float64 #

[View source]
def mood_bad=(v : Float) #

[View source]
def mood_bad=(v : Int) #

[View source]
def mood_good : Float64 #

[View source]
def mood_good=(v : Float) #

[View source]
def mood_good=(v : Int) #

[View source]
def mood_normal : Float64 #

[View source]
def mood_normal=(v : Float) #

[View source]
def mood_normal=(v : Int) #

[View source]
def no_condition : Float64 #

[View source]
def no_condition=(v : Float) #

[View source]
def no_condition=(v : Int) #

[View source]
def reform_attendance : Float64 #

[View source]
def reform_attendance=(v : Float) #

[View source]
def reform_attendance=(v : Int) #

[View source]
def reform_understanding : Float64 #

[View source]
def reform_understanding=(v : Float) #

[View source]
def reform_understanding=(v : Int) #

[View source]
def regime : Float64 #

[View source]
def regime=(v : Float) #

[View source]
def regime=(v : Int) #

[View source]
def sleep : Float64 #

[View source]
def sleep=(v : Float) #

[View source]
def sleep=(v : Int) #

[View source]
def suppresssed : Float64 #

[View source]
def suppresssed=(v : Float) #

[View source]
def suppresssed=(v : Int) #

[View source]
def table : DotPrison::Table #

def total_time : Float64 #

[View source]
def total_time=(v : Float) #

[View source]
def total_time=(v : Int) #

[View source]
def unconsumed : Array(String) #

Keys for the associated table that have not been consumed

This may be because they have not been implemented yet, they may have an unknown purpose, or could be part of an unsupported mod


[View source]
def work : Float64 #

[View source]
def work=(v : Float) #

[View source]
def work=(v : Int) #

[View source]