Mazetar

Hero.cs

Mar 25th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleBarovia
  7. {
  8.     class Hero
  9.     {
  10.         int life;
  11.  
  12.         public int giveMeYourLife()
  13.         {
  14.             return this.life;
  15.         }
  16.  
  17.         public void setLife(int l)
  18.         {
  19.             this.life = l;
  20.         }
  21.  
  22.         string name;
  23.  
  24.         public string giveMeYourName()
  25.         {
  26.             return this.name;
  27.         }
  28.         public void setName(String n)
  29.         {
  30.             this.name = n;
  31.         }
  32.  
  33.         bool belivesInMagic = false;
  34.  
  35.         public bool givebelivesInMagic()
  36.         {
  37.             return this.belivesInMagic;
  38.         }
  39.         public void setbelivesInMagic(bool m)
  40.         {
  41.             this.belivesInMagic = m;
  42.         }
  43.  
  44.         bool hasBeenInTown;
  45.         public bool giveHasBeenInTown()
  46.         {
  47.             return this.hasBeenInTown;
  48.         }
  49.         public void setHasBeenInTown(bool HIT)
  50.         {
  51.             this.hasBeenInTown = HIT;
  52.         }
  53.  
  54.            
  55.        
  56.  
  57.  
  58.         //TODO: add hero info, variables etc. here!
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment