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(); }
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(); }
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(); }
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(); }
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(); }