예제 #1
0
 void AddGoal(ResultKinds result, PlayerValue[] players, GoalCode condition)
 {
     foreach (var player in players)
     {
         _gamedef.AddGoal(result, player, condition);
     }
 }
예제 #2
0
 internal void AddGoal(ResultKinds kind, PlayerValue player, GoalCode code)
 {
     Goals.Add(new GoalDef {
         Kind = kind, Player = player, Code = code
     });
 }
예제 #3
0
        void s_CountCondition(Maybe <PlayerValue[]> players, GoalCode condition)
        {
            var pp = (players.IsNull ? new PlayerValue[] { PlayerValue.None } : players.Value);

            AddGoal(ResultKinds.Count, pp, condition);
        }
예제 #4
0
 void s_WinCondition(PlayerValue[] players, GoalCode condition)
 {
     AddGoal(ResultKinds.Win, players, condition);
 }
예제 #5
0
 void s_LossCondition(PlayerValue[] players, GoalCode condition)
 {
     AddGoal(ResultKinds.Loss, players, condition);
 }
예제 #6
0
 void s_DrawCondition(PlayerValue[] players, GoalCode condition)
 {
     AddGoal(ResultKinds.Draw, players, condition);
 }