protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e) { if (ApocalypsisEvent != null) { ApocalypsisEvent(this, e); } }
public void CarryChaos() { ApocalypsisEventArgs args = new ApocalypsisEventArgs(); Console.WriteLine("*earthquake, million demons began carry the chaos in the name of Satan*"); args.Damage = 10; OnApocalypsisBegan(args); }
public override void React(ApocalypsisEventArgs e) { this.Health -= e.Damage; if (this.Age >= 50) { Console.WriteLine("{0}: I'm too old to interrupt...", this.Name); } else { Console.WriteLine("{0}: I have to protect my nest!", this.Name); } }
protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e) { if (ApocalypsisEvent != null) ApocalypsisEvent(this, e); }
public virtual void React(ApocalypsisEventArgs e) { Console.WriteLine("{0}: We'll gonna die!", this.Name); }
public override void React(ApocalypsisEventArgs e) { Console.WriteLine("{0}: Roaaarr!", this.Name); }
public override void React(ApocalypsisEventArgs e) { Console.WriteLine("{0}: Oh no! Transformation into stone!", this.Name); this.Transform(); }
public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e) { react(e); }
public override void React(ApocalypsisEventArgs e) { this.Health -= e.Damage; Console.WriteLine("{0}: I have to save my forest!", this.Name); }
public override void React(ApocalypsisEventArgs e) { Console.WriteLine("{0}: Oh, Apocalypsis is coming! Nehehehe >:D", this.Name); }
public override void React(ApocalypsisEventArgs e) { this.Health -= e.Damage; Console.WriteLine("{0}: I will battle for my family!", this.Name); }