Added TerrainTypes enum for future adjustments made to Characters based off of the kind of terrain they're on.

Added Room.Terrain property for setting the Rooms terrain.
This commit is contained in:
Scionwest_cp 2011-09-14 20:00:44 -07:00
parent 81f2ae91c0
commit b23f84e509
3 changed files with 23 additions and 0 deletions

View file

@ -94,6 +94,8 @@ namespace MudEngine.GameObjects.Environment
} }
} }
protected TerrainTypes Terrain { get; set; }
public Room(Game game) :base(game) public Room(Game game) :base(game)
{ {
Doorways = new List<Door>(); Doorways = new List<Door>();

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MudEngine.GameObjects.Environment
{
public enum TerrainTypes
{
Stone,
Dirt,
Grass,
Rock,
Wood,
Water,
Air,
Mud,
Other,
}
}

View file

@ -84,6 +84,7 @@
<Compile Include="GameObjects\Environment\Realm.cs" /> <Compile Include="GameObjects\Environment\Realm.cs" />
<Compile Include="GameObjects\Environment\Room.cs" /> <Compile Include="GameObjects\Environment\Room.cs" />
<Compile Include="GameObjects\Environment\StartingLocation.cs" /> <Compile Include="GameObjects\Environment\StartingLocation.cs" />
<Compile Include="GameObjects\Environment\TerrainType.cs" />
<Compile Include="GameObjects\Environment\TravelDirections.cs" /> <Compile Include="GameObjects\Environment\TravelDirections.cs" />
<Compile Include="GameObjects\Environment\Zone.cs" /> <Compile Include="GameObjects\Environment\Zone.cs" />
<Compile Include="GameObjects\Items\BaseItem.cs" /> <Compile Include="GameObjects\Items\BaseItem.cs" />