//Event Damage One public void EVENT_Damage_One() { int damage = 1; model.TakeDamage(damage); view.Refresh(); }
public void EVENT_Damage() { int quantityOfDamage = GetDamageImage(); model.TakeDamage(quantityOfDamage); view.Refresh(); }
// Use this for initialization void Start() { sm = new ShieldModel(); sv = new ShieldView(); sv.SetModel(sm); sv.SetUiText(TextShieldStrengthValue, TextRepairableValue); sv.Refresh(); sc = new ShieldController(); sc.SetModel(sm); sc.SetView(sv); }
// Use this for initialization void Start() { model = new ShieldModel(); view = new ShieldView(); view.SetModel(model); view.SetUIItems(textStrength, textRepair, imageShield); view.SetImages(images); view.Refresh(); controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); }
void Start() { model = new ShieldModel(); view = new ShieldView(); view.Model = model; view.ShieldStrengthText = shieldStrengthText; view.RepairableText = repairableText; view.ShieldStrengthImage = shieldStrengthImage; view.ShieldStrengthTextures = shieldStrengthTextures; view.Refresh(); controller = new ShieldController(); controller.Model = model; controller.View = view; }
// Use this for initialization void Start() { //Model model = new ShieldModel(); //View view = new ShieldView(); view.setModel(model); view.SetUITexts(strengthValue, repairableValue); view.Refresh(); //controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); }
void Start() { // model shieldModel = new ShieldModel(); // view shieldView = new ShieldView(); shieldView.SetModel(shieldModel); shieldView.SetUITexts(strengthText, repairableText); shieldView.SetImages(shieldStrengthImage, shieldStengthImages); shieldView.Refresh(); // controller shieldController = new ShieldController(); shieldController.SetShieldModel(shieldModel); shieldController.SetShieldView(shieldView); }
void Start() { //model model = new ShieldModel(); //view view = new ShieldView(); view.SetModel(model); view.SetUITexts(StrengthText, TrueOrFalse); view.Refresh(); //controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); controller.SetButtons(Damage1, Damage10); }
void Start() { // Model model = new ShieldModel(); // View view = new ShieldView(); view.SetModel(model); view.SetUITexts(Damage1, Damage10); view.Refresh(); //Controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); controller.SetDamage1Text(Damage1); }
void Start() { // model model = new ShieldModel(); //view view = new ShieldView(); view.SetModel(model); view.SetUIText(textStrength, textIsRepairable); view.Refresh(); //controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); controller.SetButtonOne(DamageOne); controller.SetButtonTen(DamageTen); controller.SetButtonTick(ButtonTick); }
//events public void EventDamage1() { sm.TakeDamage(1); sv.Refresh(); }
//-------------Events--------------- public void EVENT_Damage(int damage) { model.TakeDamage(damage); view.Refresh(); }
//---EVENTS--- public void EVENT_Damage(int damage) { shieldModel.TakeDamage(damage); shieldView.Refresh(); }
public void HandleDamage(int amount) { model.TakeDamage(amount); view.Refresh(); }
public void EVENT_Damage1() { model.TakeDamage(one); view.Refresh(); }