role.rb

Path: lib/mues/role.rb  (CVS)
Last Update: Sat Aug 18 22:54:10 -0700 2007

This file contains the MUES::Role class, which is used to describe available roles for participation within a environment in the context of a specific user. They may represent different levels of functionality, different characters, or available accounts that are open to a given user.

Synopsis

  require 'mues/role'

  class MyWorld < MUES::Environment
      ...
      def getAvailableRoles( user )
          @characters.find_all {|char|
              char.ownername = user.login
          }.collect {|char|
              MUES::Role::new(self, char.name, char.desc)
          }
      end
  end

Subversion ID

$Id: role.rb 1206 2004-05-09 21:25:11Z deveiant $

Authors

  • Michael Granger <ged@FaerieMUD.org>

Copyright

Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.

This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Required files

mues   mues/object   mues/exceptions   mues/events  

[Validate]