make fields readonly

This commit is contained in:
Colin McMillen 2020-03-20 11:00:52 -04:00
parent 8ca79a1875
commit 70308a5d84

View File

@ -36,9 +36,9 @@ namespace SemiColinGames {
private float invincibilityTime = 0; private float invincibilityTime = 0;
// For passing into Line.Rasterize() during movement updates. // For passing into Line.Rasterize() during movement updates.
private List<Point> movePoints = new List<Point>(100); private readonly List<Point> movePoints = new List<Point>(100);
// Possible hitboxes for player <-> obstacles. // Possible hitboxes for player <-> obstacles.
private List<AABB> candidates = new List<AABB>(10); private readonly List<AABB> candidates = new List<AABB>(10);
public Player(Vector2 position, int facing) { public Player(Vector2 position, int facing) {
this.position = position; this.position = position;