public PlayerCDManager()
 {
     levitating = new Cooldown(10);
     firstAbility = new Cooldown(15);
     secondAbility = new Cooldown(8);
     falling = new Cooldown(4);
     thirdAbility = new Cooldown(20);
     second = new Cooldown(1);
 }
Beispiel #2
0
        public Player()
            : base(ResourceLoader.playerTex, new Point(0 ,0))
        {
            input = new PlayerInput(this);
            physics = new PlayerPhysics(this);
            movementController = new MovementController(this);
            abilityManager = new AbilityManager(this);

            second = new Cooldown(1);
        }
Beispiel #3
0
 public Enemy(Player player)
     : base(ResourceLoader.enemy, new Point(0, MonsterGame.screenHeight - 64 - ResourceLoader.enemy.Height))
 {
     this.player = player;
     sword = new Cooldown(0.5f);
     bullet = new Cooldown(2);
     changeState = new Cooldown(2);
     changeDirection = new Cooldown(0.5f);
     stateSelector = new Random();
     state = EnemyState.CHASING;
 }
        public AbilityManager(Player player)
        {
            this.player = player;
            levitating = new Cooldown(10);
            firstAbility = new Cooldown(15);
            secondAbility = new Cooldown(8);
            falling = new Cooldown(4);
            thirdAbility = new Cooldown(20);

            selector = new Selector(player);
            cloud = new Cloud(player.Rect.Location);
        }
Beispiel #5
0
        public AbilityManager(Player player)
        {
            this.player   = player;
            levitating    = new Cooldown(10);
            firstAbility  = new Cooldown(15);
            secondAbility = new Cooldown(8);
            falling       = new Cooldown(4);
            thirdAbility  = new Cooldown(20);

            selector = new Selector(player);
            cloud    = new Cloud(player.Rect.Location);
        }
 public AbilityIcon(Texture2D tex, Point initialPos, Cooldown actual, Cooldown running)
     : base(tex, initialPos)
 {
     this.actual = actual;
     runningCD = running;
 }
Beispiel #7
0
 public AbilityIcon(Texture2D tex, Point initialPos, Cooldown actual, Cooldown running) : base(tex, initialPos)
 {
     this.actual = actual;
     runningCD   = running;
 }