Ejemplo n.º 1
0
        public void updatePlayedAction(Player p)
        {
            List <ActionKeyInfo> actionList = new List <ActionKeyInfo>();

            foreach (Action action in p.lastTurnActions)
            {
                ActionKeyInfo acKeyInfo = new ActionKeyInfo(action);
                actionList.Add(acKeyInfo);
            }
            this.playedActionJsonList = actionList;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// ActionKey callback function to handle Delete and Back key.
        /// Deletes the selected backup.
        /// </summary>
        /// <returns>True, cause we have handled the key.</returns>
        protected static bool RemoveBackup(ActionKeyInfo keyState)
        {
            RemoveSelectedBackup();

            return(true);
        }
 /// <summary>
 /// Deletes the selected Flag.
 /// </summary>
 /// <returns>Returns true cause we have handled the key.</returns>
 private static bool DeleteFlag(ActionKeyInfo keyState)
 {
     DeleteSelectedFlag();
     return(true);
 }