Sha256: b51a1ed1e3ab2aa087744ae6e53481b0ad60cee75d08849a823776ef5f9b3abf
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true require 'time' # Defines a base action. class Action attr_reader :value, :weight attr_accessor :action_time def initialize(value, weight) @value = value @weight = weight @action_time = Time.now @action_completed = false self end def action_completed? @action_completed end attr_writer :action_completed protected def validate # throw if invalid state end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
MonkeyEngine-2.0.0 | lib/Action/action.rb |