root/trunk/lib/fm/area.rb

Revision 285, 1.2 kB (checked in by ged, 4 months ago)
  • More build system updates
  • Cleanup of some documentation headers
  • More spec conversion/cleanup.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Rev Author URL Id
Line 
1#!/usr/bin/ruby
2
3require 'fm'
4require 'fm/mixins'
5require 'fm/exceptions'
6require 'fm/locus'
7require 'fm/events/all'
8
9#
10# The FaerieMUD::Area class, a derivative of FaerieMUD::Locus. Instances of
11# this class describe a more-or-less contiguous area of the FaerieMUD game
12# world. It adds a local cartesian coordinate system and event propagation
13# reflection to the functionality inherited from the Locus class.
14#
15# == Subversion ID
16#
17# $Id$
18#
19# == Authors
20#
21# * Michael Granger <ged@FaerieMUD.org>
22#
23# :include: LICENSE
24#
25#---
26#
27# Please see the file LICENSE for licensing details.
28#
29class FaerieMUD::Area < FaerieMUD::Locus
30        contributors :ged
31
32        # SVN Revision
33        SVNRev = %q$Rev$
34
35        # SVN Id
36        SVNId = %q$Id$
37
38
39
40        #############################################################
41        ###     I N S T A N C E   M E T H O D S
42        #############################################################
43
44        ######
45        public
46        ######
47
48        # :TODO: Override add_contents(), to test for location and apply coordinates to
49        # the object.
50       
51        ### Override #disperse_events to reflect events back into the contents.
52        def disperse_events( *events )
53                # :TODO: Avoid event loops?
54                self.immerse_events( *events )
55                super
56        end
57
58
59end # class FaerieMUD::Area
Note: See TracBrowser for help on using the browser.