Exemplo n.º 1
0
 /// <summary>
 /// 让指定对象执行MoveTo事件
 /// </summary>
 ///
 /// <param name="o"></param>
 /// <param name="flag"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="w"></param>
 /// <param name="h"></param>
 /// <returns></returns>
 public MoveTo CallMoveTo(Loon.Action.ActionBind o, bool flag, int x, int y, int w, int h)
 {
     if (isClose)
     {
         return null;
     }
     if (tmpField == null)
     {
         tmpField = CreateArrayMap(w, h);
     }
     MoveTo move = new MoveTo(tmpField, x, y, flag);
     AddActionEvent(move, o);
     return move;
 }
Exemplo n.º 2
0
 public MoveAction(MoveTo move, ActorLayer layer)
 {
     this.move = move;
     this.layer = layer;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 让指定对象执行MoveTo事件
 /// </summary>
 ///
 /// <param name="field"></param>
 /// <param name="o"></param>
 /// <param name="flag"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <returns></returns>
 public MoveTo CallMoveTo(Field2D field, Loon.Action.ActionBind o, bool flag, int x, int y)
 {
     if (isClose)
     {
         return null;
     }
     MoveTo move = new MoveTo(field, x, y, flag);
     AddActionEvent(move, o);
     return move;
 }