示例#1
0
文件: Demon.cs 项目: wi110w/OOP_Labs
 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);
 }
示例#2
0
文件: Demon.cs 项目: wi110w/OOP_Labs
 protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e)
 {
     if (ApocalypsisEvent != null)
         ApocalypsisEvent(this, e);
 }
示例#3
0
 public virtual void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: We'll gonna die!", this.Name);
 }
示例#4
0
 public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e)
 {
     react(e);
 }