示例#1
0
        /*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);
        }
示例#2
0
        //change the hashmap for bandit stuff
        public void addBandit(Bandit b)
        {
            GameManager gm = GameManager.getInstance();

            gm.banditPositions[b.characterAsString] = this;
        }
示例#3
0
 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;
 }