/// <summary> /// Generate a reaction to a move /// </summary> /// <param name="moves">Moves</param> /// <param name="who">who made the move(s)</param> public void ReactMove(List<Move> moves, Player who) { FMLBody body = new FMLBody(); PerformativeChunk pc = new PerformativeChunk(); pc.AddFunction(new ReactMoveFunction(moves, who == player)); pc.owner = me; body.AddChunk(pc); interpret(body); }
/// <summary> /// Generates the FML for executing a move and interprets it. /// </summary> /// <param name="moves"></param> public void ExecuteMove(List<Move> moves) { FMLBody body = new FMLBody(); PerformativeChunk pc = new PerformativeChunk(); pc.AddFunction(new MakeMoveFunction(moves)); pc.owner = me; body.AddChunk(pc); body.AddChunk(getEmotion()); interpret(body); }