Ejemplo n.º 1
0
 //Constructor that will take in a droid collection to use
 public UserInterface(IDroidCollection DroidCollection, DroidQueue <IDroid> Queue, DroidStack <IDroid> AstromechStack, DroidStack <IDroid> JanitorStack, DroidStack <IDroid> UtilityStack,
                      DroidStack <IDroid> ProtocolStack)
 {
     this.droidCollection = DroidCollection;
     this.queue           = Queue;
     this.astromechStack  = AstromechStack;
     this.janitorStack    = JanitorStack;
     this.utilityStack    = UtilityStack;
     this.protocolStack   = ProtocolStack;
 }
        //Constructor that will take in a droid collection to use
        public UserInterface(IDroidCollection DroidCollection)
        {
            this.droidCollection = DroidCollection;

            //Hardcode some droids to the list
            this.droidCollection.Add("Carbonite","Protocol","Bronze",5);
            this.droidCollection.Add("Vanadium","Protocol","Silver",100);
            this.droidCollection.Add("Quadranium","Protocol","Gold",20);

            this.droidCollection.Add ("Vanadium", "Utility", "Gold", true, true, true);
            this.droidCollection.Add ("Carbonite", "Utility", "Bronze", true, true, true);
            this.droidCollection.Add ("Quadranium", "Utility", "Silver", true, true, true);

            this.droidCollection.Add ("Carbonite","Janitor","Bronze",true,true,true,true,true);
            this.droidCollection.Add ("Vanadium","Janitor","Bronze",true,true,false,true,false);
            this.droidCollection.Add ("Quadranium","Janitor","Gold",false,true,false,true,true);

            this.droidCollection.Add ("Carbonite","Astromech","Silver",true,true,true,true,10);
            this.droidCollection.Add ("Vanadium","Astromech","Silver",false,true,false,true,5);
            this.droidCollection.Add ("Quadranium","Janitor","Gold",false,true,true,false,2);
        }
Ejemplo n.º 3
0
        //Constructor that will take in a droid collection to use
        public UserInterface(IDroidCollection DroidCollection)
        {
            this.droidCollection = DroidCollection;

            //Hardcode some droids to the list
            this.droidCollection.Add("Carbonite", "Protocol", "Bronze", 5);
            this.droidCollection.Add("Vanadium", "Protocol", "Silver", 100);
            this.droidCollection.Add("Quadranium", "Protocol", "Gold", 20);

            this.droidCollection.Add("Vanadium", "Utility", "Gold", true, true, true);
            this.droidCollection.Add("Carbonite", "Utility", "Bronze", true, true, true);
            this.droidCollection.Add("Quadranium", "Utility", "Silver", true, true, true);

            this.droidCollection.Add("Carbonite", "Janitor", "Bronze", true, true, true, true, true);
            this.droidCollection.Add("Vanadium", "Janitor", "Bronze", true, true, false, true, false);
            this.droidCollection.Add("Quadranium", "Janitor", "Gold", false, true, false, true, true);

            this.droidCollection.Add("Carbonite", "Astromech", "Silver", true, true, true, true, 10);
            this.droidCollection.Add("Vanadium", "Astromech", "Silver", false, true, false, true, 5);
            this.droidCollection.Add("Quadranium", "Janitor", "Gold", false, true, true, false, 2);
        }
 //Constructor that will take in a droid collection to use
 public UserInterface(IDroidCollection DroidCollection)
 {
     this.droidCollection = DroidCollection;
 }
Ejemplo n.º 5
0
 // Constructor that will take in a droid collection to use
 public UserInterface(IDroidCollection DroidCollection)
 {
     this.droidCollection = DroidCollection;
 }