struct DotPrison::Prison::Object::Prisoner::ExperienceStats
Defined in:
dot_prison/prison/object/prisoner.crConstructors
Instance Method Summary
-
#class : Float64
Returns the runtime
Class
of an object. - #class=(v : Float)
- #class=(v : Int)
- #exercise : Float64
- #exercise=(v : Float)
- #exercise=(v : Int)
- #freetime : Float64
- #freetime=(v : Float)
- #freetime=(v : Int)
- #kod : Float64
- #kod=(v : Float)
- #kod=(v : Int)
- #locked_down : Float64
- #locked_down=(v : Float)
- #locked_down=(v : Int)
- #misconduct : Float64
- #misconduct=(v : Float)
- #misconduct=(v : Int)
- #mood_bad : Float64
- #mood_bad=(v : Float)
- #mood_bad=(v : Int)
- #mood_good : Float64
- #mood_good=(v : Float)
- #mood_good=(v : Int)
- #mood_normal : Float64
- #mood_normal=(v : Float)
- #mood_normal=(v : Int)
- #no_condition : Float64
- #no_condition=(v : Float)
- #no_condition=(v : Int)
- #reform_attendance : Float64
- #reform_attendance=(v : Float)
- #reform_attendance=(v : Int)
- #reform_understanding : Float64
- #reform_understanding=(v : Float)
- #reform_understanding=(v : Int)
- #regime : Float64
- #regime=(v : Float)
- #regime=(v : Int)
- #sleep : Float64
- #sleep=(v : Float)
- #sleep=(v : Int)
- #suppresssed : Float64
- #suppresssed=(v : Float)
- #suppresssed=(v : Int)
- #table : DotPrison::Table
- #total_time : Float64
- #total_time=(v : Float)
- #total_time=(v : Int)
-
#unconsumed : Array(String)
Keys for the associated table that have not been consumed
- #work : Float64
- #work=(v : Float)
- #work=(v : Int)
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
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
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