Exemplo n.º 1
0
 public void addCollidingActor(BoardActor argActor)
 {
     if (!collidingActors.Contains(argActor))
     {
         collidingActors.Add(argActor);
         argActor.onMouseIn();
     }
 }
Exemplo n.º 2
0
 public override void execute(IEventListener module)
 {
     if (module is SceneManager && actor != null)
     {
         BoardActor b = ((SceneManager)module).createActor(x, y, imageName, details);
         b.setInterfaceObject(actor);
         actor.onEngineObjectCreated();
     }
 }
Exemplo n.º 3
0
        public bool isCollidingWithActor(BoardActor argActor)
        {
            // TODO: bounding box check
            if (argActor.isAt(position))
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 4
0
 public void removeCollidingActor(BoardActor argActor)
 {
     collidingActors.Remove(argActor);
     argActor.onMouseOut();
 }
Exemplo n.º 5
0
 internal void setActor(BoardActor ba)
 {
     actor = ba;
 }