Exemple #1
0
 public void onActorLocationChanged(BoardActor boardActor, Point newLocation)
 {
     // give our actor a new position in the quad tree
     actors.Remove(boardActor, boardActor.getBounds());
     boardActor.location = newLocation;
     actors.Add(boardActor, boardActor.getBounds());
 }
Exemple #2
0
        public void addActor(BoardActor ba)
        {
            if (ba != null)
            {
                actors.Add(ba, ba.getBounds());
                ba.setBoard(this);
            }

            onBoardChanged();
        }
Exemple #3
0
 public void deleteActor(BoardActor ba)
 {
     actors.Remove(ba, ba.getBounds());
     ba.setBoard(null);
     onBoardChanged();
 }