Exemplo n.º 1
0
 /// <summary>
 /// Sends the group to the position and registers all the objects in the group to controlled movements.
 /// </summary>
 /// <param name="group">The group which is sended to the position of the game object.</param>
 /// <param name="gameObject">The object where the group goes.</param>
 /// <param name="reciever">The IFinishMovementReciever for the movable object.</param>
 public void GoToTarget(GroupMovables group, IGameObject gameObject, IFinishMovementReciever reciever)
 {
     GoToTargetGroup(group, gameObject);
     foreach (IMovableGameObject imgo in group)
     {
         finishMoveRecDict.Add(imgo, reciever);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sends the movable object to the position and registers the object to controlled movements.
 /// </summary>
 /// <param name="imgo">The movable object which is sended to the position of the game object.</param>
 /// <param name="gameObject">The object where the movable object goes.</param>
 /// <param name="reciever">The IFinishMovementReciever for the movable object.</param>
 public void GoToTarget(IMovableGameObject imgo, IGameObject gameObject, IFinishMovementReciever reciever)
 {
     imgo.GoToTarget(gameObject);
     moveMgrControledDict.Add(imgo, gameObject);
     finishMoveRecDict.Add(imgo, reciever);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sends the group to the position and registers all the objects in the group to controlled movements.
 /// </summary>
 /// <param name="group">The group which is sended to the position of the game object.</param>
 /// <param name="gameObject">The object where the group goes.</param>
 /// <param name="reciever">The IFinishMovementReciever for the movable object.</param>
 public void GoToTarget(GroupMovables group, IGameObject gameObject, IFinishMovementReciever reciever)
 {
     GoToTargetGroup(group, gameObject);
     foreach (IMovableGameObject imgo in group) {
         finishMoveRecDict.Add(imgo, reciever);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sends the movable object to the position and registers the object to controlled movements.
 /// </summary>
 /// <param name="imgo">The movable object which is sended to the position of the game object.</param>
 /// <param name="gameObject">The object where the movable object goes.</param>
 /// <param name="reciever">The IFinishMovementReciever for the movable object.</param>
 public void GoToTarget(IMovableGameObject imgo, IGameObject gameObject, IFinishMovementReciever reciever)
 {
     imgo.GoToTarget(gameObject);
     moveMgrControledDict.Add(imgo, gameObject);
     finishMoveRecDict.Add(imgo, reciever);
 }