예제 #1
0
 /// <summary>
 /// Weapon constructor
 /// </summary>
 public Weapon(GameCharacter weaponUser) : base()
 {
     weaponWielder = weaponUser;
     LoadContent();
 }
예제 #2
0
 public CharacterStateMachine(GameCharacter character)
 {
     Character = character;
     Reset();
 }
예제 #3
0
파일: Gun.cs 프로젝트: MikePaNtZ/PiN
 /// <summary>
 /// Gun constructor
 /// </summary>
 public Gun(GameCharacter theShooter)
     : base(theShooter)
 {
     CanFire = true;
 }
예제 #4
0
 public State(CharacterStateMachine sm)
 {
     this.sm   = sm;
     character = sm.Character;
 }
예제 #5
0
 public PhysicsEngine(GameCharacter gameChar)
 {
     character = gameChar;
 }
예제 #6
0
 /// <summary>
 /// Constructs a new Enemy.
 /// </summary>
 public HeroSpeedGun(GameCharacter theShooter)
     : base(theShooter)
 {
     bulletSpeed = 20.0f;
     attackRate  = 12;
 }
예제 #7
0
 /// <summary>
 /// Constructs a new Enemy.
 /// </summary>
 public HeroStrengthGun(GameCharacter theShooter)
     : base(theShooter)
 {
     bulletSpeed = 5.0f;
     attackRate  = 2;
 }
예제 #8
0
 /// <summary>
 /// Constructs a new Enemy.
 /// </summary>
 public HeroFlightGun(GameCharacter theShooter)
     : base(theShooter)
 {
     bulletSpeed = 15.0f;
     attackRate  = 3;
 }
예제 #9
0
파일: HeroGun.cs 프로젝트: MikePaNtZ/PiN
 /// <summary>
 /// Constructs a new Enemy.
 /// </summary>
 public HeroGun(GameCharacter theShooter) : base(theShooter)
 {
     // Set this hero gun to 5 bullets per s in automatic mode.
     attackRate = 5;
 }
예제 #10
0
파일: Level.cs 프로젝트: MikePaNtZ/PiN
 /// <summary>
 /// Called when the activeHero is hit by an enemy.
 /// </summary>
 /// <param name="hitBy">
 /// The enemy who hit the activeHero. This is null if the activeHero was not hit by an
 /// enemy, such as when a activeHero hits or is hit by a hazard.
 /// </param>
 private void OnHeroHit(GameCharacter hitBy)
 {
     ActiveHero.OnHit(hitBy);
 }
예제 #11
0
파일: EnemyGun.cs 프로젝트: MikePaNtZ/PiN
        /// <summary>
        /// Constructs a new Enemy.
        /// </summary>
        public EnemyGun(GameCharacter theShooter) : base(theShooter)
        {

            // set enemy's gun to fire bullets at 1 per sec
            attackRate = 2;
        }