home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2002 September / PCPlus_193_Laplink2000.iso / Prog / c# / wombat / AdvConsts.cs next >
Encoding:
Text File  |  2002-03-22  |  503 b   |  25 lines

  1. using System;
  2.  
  3. namespace wombat
  4. {
  5.     /// <summary>
  6.     /// AdventureConstants contains classes that
  7.     /// define any constants that might be needed
  8.     /// 'globally' throughout the game.
  9.     /// </summary>
  10.     public class dir
  11.     {
  12.         public const int NOEXIT = -1;
  13.         public const int NORTH = 1; 
  14.         public const int SOUTH = 2;
  15.         public const int EAST = 3;
  16.         public const int WEST = 4; 
  17.         
  18.         private dir()
  19.         {
  20.         // constructor is private so a dir object
  21.         // cannot be created using 'new'
  22.         }
  23.     }
  24. }
  25.