# 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