コード例 #1
0
ファイル: BraceFace.cs プロジェクト: ErraticUnicorn/MOSH
 public BraceFace()
     : base()
 {
     rand = new Random();
     this.setSpeed(250f);
     healthBar = new HealthBarTexture();
     this.setHealth(DEFAULT_MAX_HEALTH);
 }
コード例 #2
0
ファイル: Hero.cs プロジェクト: ErraticUnicorn/MOSH
 /// <summary>
 /// Initializes a Hero at the given position with the given dimensions
 /// </summary>
 /// <param name="x">X coordinate of the top-left corner</param>
 /// <param name="y">Y coordinate of the top-left corner</param>
 /// <param name="w">Width in pixels</param>
 /// <param name="h">Height in pixels</param>
 private Hero(int x, int y, int w, int h)
     : base(x, y, w, h, string.Empty)
 {
     ppSystem = new PickpocketSystem();
     ppActive = false;
     canShoot = true;
     shootTimer = 0.0f;
     dialogue = new DialoguePanel();
     monologue = new InnerMonologue();
     nerdRep = 0;
     jockRep = 0;
     prepRep = 0;
     bullyRep = 0;
     slackerRep = 0;
     healthBar = new HealthBarTexture();
     this.setHealth(DEFAULT_MAX_HEALTH);
     follower = PersonID.None;
 }