player.rb
mimud/lib/player.rb · 481 B
From the archive mimud.tar.gz
Download the archive « Back to the archive contents
# This is the base class for player's. It is very simple
# and in just in place to get some basic functionality
# working properly. It could really use some expansion.
class Player
attr_accessor :name, :state, :level, :title
def initialize
@name = nil # The player's name.
@state = :get_name # The player's current state of play/connection.
@title = "peon" # The player's in-game title.
@level = 0 # The player's in-game level.
end
end