Diff of /Classes/Field/Field.cs [569eeb] .. [c5a3d1]  Maximize  Restore

Switch to side-by-side view

--- a/Classes/Field/Field.cs
+++ b/Classes/Field/Field.cs
@@ -1,36 +1,32 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
 using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
 
 namespace YuGiOh_Ultra {
-    public class Field : IEnumerable<Card> {
-        public ObservableCollection<Card> Cards { get; private set; }
+    public class Field : IEnumerable<ACard> {
+        public ObservableCollection<ACard> Cards { get; private set; }
         public const uint MAX_CARDS = 5;
 
-        public Field() { Cards = new ObservableCollection<Card>(); }
+        public Field() { Cards = new ObservableCollection<ACard>(); }
 
-        public bool Add( Card c ) {
+        public bool Add( ACard c ) {
             if( Cards.Count == MAX_CARDS ) return false;
             Cards.Add( c );
             return true;
         }
 
-        public void Remove( Card c ) { Cards.Remove( c ); }
+        public void Remove( ACard c ) { Cards.Remove( c ); }
 
-        public Card this[int i] {
+        public ACard this[int i] {
             get { return Cards[i]; }
         }
 
-        public Card RemoveAt( int index ) {
-            Card r = Cards[index];
+        public ACard RemoveAt( int index ) {
+            ACard r = Cards[index];
             Cards.RemoveAt(index);
             return r;
         }
 
-        public IEnumerator<Card> GetEnumerator() { return Cards.GetEnumerator(); }
+        public IEnumerator<ACard> GetEnumerator() { return Cards.GetEnumerator(); }
 
         System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return GetEnumerator(); }
     }