Exemple #1
0
        public virtual void ControlEyes(DogEyes eyes)
        {
            //use enum for picking the right image file
            this.eyes = eyes;
            LcdConsole.WriteLine(eyes.ToString());
            Bitmap bmpEyes = Bitmap.FromResouce(Assembly.GetExecutingAssembly(), eyes.ToString() + ".bitmap");

            Lcd.Instance.Clear();
            Lcd.Instance.DrawBitmap(bmpEyes, new Point((int)(Lcd.Width - bmpEyes.Width) / 2, 10));
            Lcd.Instance.Update();
        }
Exemple #2
0
        public AbstractDog(IMemory memory)
        {
            combos            = new Dictionary <string, Action>();
            this.memory       = memory;
            this.dateOfBirth  = DateTime.Now;
            this.age          = 0;
            this.fullness     = 10;
            this.happiness    = 12;
            this.bladderLevel = 0;
            this.name         = "RoboDog";
            this.eyes         = DogEyes.Neutral;


            StartLife();
        }
Exemple #3
0
 public AbstractDog(IMemory memory)
 {
     combos = new Dictionary<string, Action>();
     this.memory = memory;
     this.dateOfBirth = DateTime.Now;
     this.age = 0;
     this.fullness = 10;
     this.happiness = 12;
     this.bladderLevel = 0;
     this.name = "RoboDog";
     this.eyes = DogEyes.Neutral;
   
      
     StartLife();
 }
Exemple #4
0
        public AbstractDog(IMemory memory, int fullness, int happiness, int bladderlevel, string name, DogEyes eyes)
        {
            combos = new Dictionary <string, Action>();

            this.memory       = memory;
            this.dateOfBirth  = DateTime.Now;
            this.age          = 0;
            this.fullness     = fullness;
            this.happiness    = happiness;
            this.bladderLevel = bladderlevel;
            this.name         = name;
            this.eyes         = eyes;


            StartLife();
        }
Exemple #5
0
        public AbstractDog(IMemory memory, int fullness, int happiness, int bladderlevel, string name, DogEyes eyes)
        {
            combos = new Dictionary<string, Action>();

            this.memory = memory;
            this.dateOfBirth = DateTime.Now;
            this.age = 0;
            this.fullness = fullness;
            this.happiness = happiness;
            this.bladderLevel = bladderlevel;
            this.name = name;
            this.eyes = eyes;
           

            StartLife();
        }
Exemple #6
0
 public virtual void ControlEyes(DogEyes eyes)
 {
     //use enum for picking the right image file
     this.eyes = eyes;   
     LcdConsole.WriteLine(eyes.ToString());
     Bitmap bmpEyes = Bitmap.FromResouce(Assembly.GetExecutingAssembly(), eyes.ToString() + ".bitmap");
     Lcd.Instance.Clear();
     Lcd.Instance.DrawBitmap(bmpEyes, new Point((int)(Lcd.Width - bmpEyes.Width) / 2, 10));
     Lcd.Instance.Update();	
    
 }