public void ToughnessCannotBeSetBelowZeroTest() { var validStack = new ParquetStack(TestParquets.TestFloor, TestParquets.TestBlock, TestParquets.TestFurnishing, TestParquets.TestCollectible); var testStatus = new ParquetStatus(validStack); testStatus.Toughness = int.MinValue; Assert.Equal(Block.LowestPossibleToughness, testStatus.Toughness); }
public void ToughnessCannotBeAboveMaxToughnessTest() { var validStack = new ParquetStack(TestParquets.TestFloor, TestParquets.TestBlock, TestParquets.TestFurnishing, TestParquets.TestCollectible); var testStatus = new ParquetStatus(validStack); var priorToughness = testStatus.Toughness; testStatus.Toughness = int.MaxValue; Assert.Equal(priorToughness, testStatus.Toughness); }
internal void ParquetStackIsEmptyWhenAllFieldsAreNullTest() { var stack = new ParquetStack(); Assert.True(stack.IsEmpty); }
/// <summary> /// Triggered when the information about a specific map location is ready to be displayed. /// </summary> /// <param name="in_parquets">Any and all parquets at the location.</param> /// <param name="in_points">Any and all special points at the location.</param> public PositionInfoEvent(ParquetStack in_parquets, List <SpecialPoint> in_points) { Parquets = in_parquets; SpecialPoints = in_points; }
/// <summary> /// Initializes a new instance of the <see cref="Space"/> class. /// </summary> /// <param name="in_position">Location of this <see cref="Space"/>.</param> /// <param name="in_content">All parquets occupying this <see cref="Space"/>.</param> public Space(Point in_position, ParquetStack in_content) { Position = in_position; Content = in_content; }