public override void opponentCast(ParametersQueue args) { spawnTarget = args.getField(); spawnTarget.spawn(new Creature(name, this, spawnTarget, GameEngine.getActivePlayer())); droneTarget = args.getField(); CreatureCard c = new ScoutingDrone(); droneTarget.spawn(new Creature(c.name, c, droneTarget, GameEngine.getActivePlayer())); }
public static void opponentRClick(ParametersQueue args) { Field from = args.getField(); Field to = args.getField(); log("oppRClick from " + from.x + " " + from.y + " to " + to.x + " " + to.y); Creature invoker = (Creature)from.content; invoker.special(to); }
public static void opponentLClick(ParametersQueue args) { Field from = args.getField(); Field to = args.getField(); Creature invoker = (Creature)from.content; SpawnableObject target = to.content; if (target == null) { generateMovePaths(from, invoker); List <Field> path = new List <Field>(); Field parent = to; while (parent != from) { path.Add(parent); parent = GAME.movePaths[parent]; } List <Field> invokedPath = new List <Field>(); for (int i = path.Count - 1; i >= 0; i--) { bool interrupt = path[i].onMoveThrough(invoker); invokedPath.Add(path[i]); if (interrupt) { to = path[i]; break; } } GAME.StartCoroutine(invoker.MovementAnimation(invokedPath, from.contentObject)); invoker.move(to); } else { invoker.attack(target); } }
public override void opponentCast(ParametersQueue args) { spawnTarget = args.getField(); spawnTarget.spawn(new Creature(name, this, spawnTarget, GameEngine.getActivePlayer())); }
public override void opponentCast(ParametersQueue args) { target = args.getField(); endCast(); }