示例#1
0
 public void Update(Actor actor)
 {
     //switch (Controller.GetMovementDirection())
     //{
     //    case LEFT:
     //        actor.X -= MOVEMENT_ACCELERATION;
     //        break;
     //    case RIGHT:
     //        actor.X += MOVEMENT_ACCELERATION;
     //        break;
     //    case UP:
     //        actor.Y -= MOVEMENT_ACCELERATION;
     //        break;
     //    case DOWN:
     //        actor.Y += MOVEMENT_ACCELERATION;
     //        break;
     //}
 }
示例#2
0
 public AttackSlash(Actor actor)
     : base(actor)
 {
     _extraCost = 2;
 }
示例#3
0
文件: Attack.cs 项目: Zolomon/Crawl
 public Attack(Actor actor)
 {
     _actor = actor;
     _rand = new Random();
     _cost = 3;
 }
示例#4
0
 public AttackStab(Actor actor)
     : base(actor)
 {
     _extraCost = 7;
 }