예제 #1
0
파일: Demon.cs 프로젝트: wi110w/OOP_Labs
 protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e)
 {
     if (ApocalypsisEvent != null)
     {
         ApocalypsisEvent(this, e);
     }
 }
예제 #2
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);
 }
예제 #3
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);
        }
예제 #4
0
 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);
     }
 }
예제 #5
0
파일: Demon.cs 프로젝트: wi110w/OOP_Labs
 protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e)
 {
     if (ApocalypsisEvent != null)
         ApocalypsisEvent(this, e);
 }
예제 #6
0
 public virtual void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: We'll gonna die!", this.Name);
 }
예제 #7
0
 public override void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: Roaaarr!", this.Name);
 }
예제 #8
0
파일: Gargoyle.cs 프로젝트: wi110w/OOP_Labs
 public override void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: Oh no! Transformation into stone!", this.Name);
     this.Transform();
 }
예제 #9
0
파일: Creature.cs 프로젝트: wi110w/OOP_Labs
 public virtual void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: We'll gonna die!", this.Name);
 }
예제 #10
0
 public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e)
 {
     react(e);
 }
예제 #11
0
파일: Unicorn.cs 프로젝트: wi110w/OOP_Labs
 public override void React(ApocalypsisEventArgs e)
 {
     this.Health -= e.Damage;
     Console.WriteLine("{0}: I have to save my forest!", this.Name);
 }
예제 #12
0
파일: Program.cs 프로젝트: wi110w/OOP_Labs
 public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e)
 {
     react(e);
 }
예제 #13
0
파일: Dragon.cs 프로젝트: wi110w/OOP_Labs
 public override void React(ApocalypsisEventArgs e)
 {
     Console.WriteLine("{0}: Oh, Apocalypsis is coming! Nehehehe >:D", this.Name);
 }
예제 #14
0
파일: Pegasus.cs 프로젝트: wi110w/OOP_Labs
 public override void React(ApocalypsisEventArgs e)
 {
     this.Health -= e.Damage;
     Console.WriteLine("{0}: I will battle for my family!", this.Name);
 }