From fa4784fc494c48b7de8dbb45f2a453a7f1bbfbc6 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Sun, 8 Mar 2020 18:30:46 -0400 Subject: [PATCH] IsHarmful -> IsHazard --- Shared/Player.cs | 6 +++--- Shared/World.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Shared/Player.cs b/Shared/Player.cs index e0f2157..c05e805 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -94,7 +94,7 @@ namespace SemiColinGames { if (box.Intersect(player) != null) { Debug.AddRect(box, Color.Cyan); reject = true; - if (box.Tile?.IsHarmful ?? false) { + if (box.Tile?.IsHazard ?? false) { Debug.AddRect(box, Color.Red); harmedByCollision = true; } @@ -112,7 +112,7 @@ namespace SemiColinGames { if (box.Intersect(player) != null) { Debug.AddRect(box, Color.Cyan); reject = true; - if (box.Tile?.IsHarmful ?? false) { + if (box.Tile?.IsHazard ?? false) { Debug.AddRect(box, Color.Red); harmedByCollision = true; } @@ -130,7 +130,7 @@ namespace SemiColinGames { if (groundIntersect.Intersect(box) != null) { Debug.AddRect(box, Color.Cyan); standingOnGround = true; - if (box.Tile?.IsHarmful ?? false) { + if (box.Tile?.IsHazard ?? false) { Debug.AddRect(box, Color.Red); harmedByCollision = true; } diff --git a/Shared/World.cs b/Shared/World.cs index bed9048..ed5d095 100644 --- a/Shared/World.cs +++ b/Shared/World.cs @@ -15,11 +15,11 @@ namespace SemiColinGames { Position = position; this.texture = texture; this.textureSource = textureSource; - IsHarmful = isHazard; + IsHazard = isHazard; } public Rectangle Position { get; private set; } - public bool IsHarmful = false; + public bool IsHazard = false; public void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw(