znmud-0.0.1/benchmark/
znmud-0.0.1/cmd/
znmud-0.0.1/cmd/emotes/
znmud-0.0.1/cmd/objects/
znmud-0.0.1/cmd/tiny/
znmud-0.0.1/doc/
znmud-0.0.1/farts/
znmud-0.0.1/lib/
znmud-0.0.1/lib/combat/
znmud-0.0.1/lib/core/bodytypes/
znmud-0.0.1/lib/engine/
znmud-0.0.1/lib/farts/
znmud-0.0.1/logs/
# File mailmsg.rb
# Author: Craig Smith
#
# A mail message

# This source code copyright (C) 2009 Craig Smith
# All rights reserved.
#
# Released under the terms of the TeensyMUD Public License
# See LICENSE file for additional information.
#
require 'gettext'

# Special Cash object to represent money
class MailMsg < GameObject
  include GetText
  bindtextdomain("core")

  property :from, :to, :subject, :body, :date, :read

  # Create a new Object
  # [+name+]     Every object needs a name
  # [+owner+]    The owner id of this object
  # [+location+] The object id containing this object or nil.
  # [+return+]   A handle to the new Object
  def initialize(name, owner, location=nil)
	super(name,owner,location)
	self.from = nil		# From id
	self.to = nil		# To id
	self.subject = nil	# Subject
	self.body = nil		# Message Body
	self.date = nil		# Sent Date
	self.read = false	# Message has been read
  end

  def reset
	self.from = nil		# From id
	self.to = nil		# To id
	self.subject = nil	# Subject
	self.body = nil		# Message Body
	self.date = nil		# Sent Date
	self.read = false	# Message has been read
  end
end