예제 #1
0
파일: Actor.cs 프로젝트: atarng/JAMMM
 public virtual void onPowerupRemoval(Powerup p)
 {
 }
예제 #2
0
파일: Actor.cs 프로젝트: atarng/JAMMM
 /// <summary>
 /// This handles application of a powerup which triggers changePowerupState
 /// and resetPowerupState as well as resetting the timer
 /// </summary>
 public virtual void applyPowerup(Powerup p)
 {
 }
예제 #3
0
파일: Actor.cs 프로젝트: atarng/JAMMM
 public virtual void onPowerupApplication(Powerup p)
 {
 }
예제 #4
0
파일: Fish.cs 프로젝트: atarng/JAMMM
        public void spawnAt(Vector2 position, Powerup p, bool isColorCoded)
        {
            base.spawnAt(position);

            this.isColorCoded = isColorCoded;

            this.powerup = p;
            this.isPoweredUp = true;
            this.MaxVel = 666;
            this.MaxAcc = 700;

            changeState(state.Moving);

            randomX = rnd.NextDouble() * 2 - rnd.NextDouble();
            randomY = rnd.NextDouble() * 2 - rnd.NextDouble();

            this.isSchooling = false;
            this.isLeader = false;
            this.partner = null;
            this.gettingIntoSchoolRange = false;
        }