require './State1'

class Entity

  attr_accessor :state

  def initialize
    @state = State1.new
  end

  def change_to_state_1
    @state.change_to_state_1 self
  end

  def change_to_state_2
    @state.change_to_state_2 self
  end

  def change_to_state_3
    @state.change_to_state_3 self
  end

  def method
    puts "This is the entity!"
    @state.method
  end
end
