Class BorderOnlyMapCreationStrategy<T>
The BorderOnlyMapCreationStrategy creates a Map of the specified type by making an empty map with only the outermost border being solid walls
Inheritance
System.Object
BorderOnlyMapCreationStrategy<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RogueSharp.MapCreation
Assembly: RogueSharp.dll
Syntax
public class BorderOnlyMapCreationStrategy<T> : IMapCreationStrategy<T> where T : IMap, new()
Type Parameters
Name | Description |
---|---|
T | The type of IMap that will be created |
Constructors
| Improve this Doc View SourceBorderOnlyMapCreationStrategy(Int32, Int32)
Constructs a new BorderOnlyMapCreationStrategy with the specified parameters
Declaration
public BorderOnlyMapCreationStrategy(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width of the Map to be created |
System.Int32 | height | The height of the Map to be created |
Methods
| Improve this Doc View SourceCreateMap()
Creates a Map of the specified type by making an empty map with only the outermost border being solid walls
Declaration
public T CreateMap()
Returns
Type | Description |
---|---|
T | An IMap of the specified type |