/*public void removeBandit(Bandit b) { * System.Diagnostics.Trace.Assert(banditsHere.Contains(b)); * this.banditsHere.Remove(b); * }*/ //query hashmap public bool containsBandit(Bandit b) { GameManager gm = GameManager.getInstance(); if (gm.banditPositions[b.characterAsString] == this) { return(true); } return(false); }
//change the hashmap for bandit stuff public void addBandit(Bandit b) { GameManager gm = GameManager.getInstance(); gm.banditPositions[b.characterAsString] = this; }
public void setRiddenBy(Bandit b) { //TODO: whenever a Bandit is set to a horse their sprite needs to be moved onto the horse this.riddenBy = b; }