Package com.golden.gamedev.object

Examples of com.golden.gamedev.object.Timer


    public Robot (BufferedImage[] images, double x, double y, Player player, int health, LixoGame game)
    {
       super(images,x,y, player);
       this.health = health;
       this.spriteSheet = images;
       bulletTimer = new Timer(PlayerConstants.BulletTimer);
       bulletTimer.setActive(false);
       moveTimer = new Timer(100);
       moveTimer.setActive(false);
       deathTimer = new Timer(200);
       deathTimer.setActive(false);
       state = RobotState.Searching;
       radius = 150.0;
       this.game = game;
View Full Code Here


        this.hasGun = gun;
        this.on_ground = false;
        this.game = game;
        this.hulkSpritesheet = LoadHulkSpriteSheet();
        this.score = 0;
        this.bulletTimer = new Timer (PlayerConstants.BulletTimer);
        this.bulletTimer.setActive(false);
        this.mudTimer = new Timer (PlayerConstants.MudTimer);
        this.mudTimer.setActive(false);
        this.invincibilityTimer = new Timer(PlayerConstants.InvincibilityTimer);
        this.invincibilityTimer.setActive(false);
        this.invincibility = false;
        this.invincibleDueToPotion = false;
        this.inMud = false;
View Full Code Here

    }

    public void setInvincibility(int miliseconds) {
        //System.out.println("Invincibility timer on");
        invincibility = true;
        invincibilityTimer = new Timer(miliseconds);
        invincibilityTimer.setActive(true);
        invincibilityTimer.refresh();
    }
View Full Code Here

   * @param repeatRate The repeat rate.
   */
  public KeyTyped(BaseInput bsInput, int repeatDelay, int repeatRate) {
    this.bsInput = bsInput;
   
    this.repeatDelayTimer = new Timer(repeatDelay);
    this.repeatRateTimer = new Timer(repeatRate);
   
    this.repeatDelayTimer.setActive(false);
   
    this.key = this.keyTyped = BaseInput.NO_KEY;
  }
View Full Code Here

TOP

Related Classes of com.golden.gamedev.object.Timer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.