Android Open Source - diploma-assignment Constants






From Project

Back to project page diploma-assignment.

License

The source code is released under:

MIT License

If you think the Android project diploma-assignment listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.me.battlescreen;
// ww w  . j a va2 s.  c  o m
public abstract class Constants {
  //ParentDrawingThread.java
  public static final int MILLISEC_BETWEEN_FRAMES = 40;
  public static final int FRAMES=25;
  public static final float BACKGROUND_HEIGHT_PERCENTAGE=0.85f;
  public static float WIDTH_SCALE;
  public static float HEIGHT_SCALE;
  public static int WIDTH_CONST;
  public static int HEIGHT_CONST;
  public static float MONSTER_X_OFFSET;
  public static float MONSTER_X_COMPUTER_OFFSET;
  public static final float BALLISTA_HEIGHT_OFFSET = 0.87f;
  public static final float BALLISTA_HEIGHT = 0.075f;
  public static final float CASTLE_HEIGHT_RAMPART_OFFSET = 0.15f;
  public static final float CASTLE_HEIGHT_NECRO_OFFSET = 0.2f;
  public static final float CASTLE_HEIGHT = 0.75f;
  public static final long GAME_LENGTH=10*60*1000;
  
  //Ballista.java
  public static final float DISPLACEMENT_X_BALLISTA = 0.35f;
  public static int ARROW_VELOCITY;
  public static final int MAX_ANGLE_BALLISTA = 40;
  public static final int BALLISTA_FRAMES=5;
  public static final int ARROW_TIME=4;
  
  //BallistaArrow.java
  public static float GRAVITY;
  public static final float BALLISTA_ARROW_HEIGHT = 0.03f;
  
  //Monster.java
  public static final int MOVEMENT_CONST = 12;
  public static final String UNIT_HIT_COLORFILTER_STRING = "#FF3333";
  public static final int FRAME_SKIP_MONSTER = 2;
  
  //Height of monsters
  public static final float MONSTER_OFFSET = 0.2f;
  public static final float CENTAUR_HEIGHT = 0.25f;
  public static final float DWARF_HEIGHT = 0.2f;
  public static final float ELF_HEIGHT = 0.2f;
  public static final float PEGASUS_HEIGHT = 0.25f;
  public static final float DENDROIDGUARD_HEIGHT = 0.3f;
  public static final float UNICORN_HEIGHT = 0.3f;
  public static final float DRAGON_HEIGHT = 0.4f;
  public static final float SKELETON_HEIGHT = 0.2f;
  public static final float ZOMBIE_HEIGHT = 0.2f;
  public static final float WIGTH_HEIGHT = 0.2f;
  public static final float VAMPIRE_HEIGHT = 0.25f;
  public static final float LICH_HEIGHT = 0.3f;
  public static final float BLACKKNIGHT_HEIGHT = 0.3f;
  public static final float BONEDRAGON_HEIGHT = 0.4f;
  public static final int HEALTH_PLAYER_MONSTERS = 2;
  public static final int HEALTH_COMPUTER_MONSTERS = 4;
  public static final int CASTLE_LEVEL_HEALTH=100;
  public static int BALLISTA_DAMAGE = 1;
  
  public static int BACKWIDTH;
  public static int SECONDS_FOR_BACKGROUND=30;
  
  public static int MAX_COMPUTER_UNIT_WAIT_TIME=150;
  
}




Java Source Code List

com.me.battlescreen.BallistaArrow.java
com.me.battlescreen.Ballista.java
com.me.battlescreen.BattlePlayer.java
com.me.battlescreen.BattleScreen.java
com.me.battlescreen.Bot.java
com.me.battlescreen.Castle.java
com.me.battlescreen.CleanBackground.java
com.me.battlescreen.ComputerPlayer.java
com.me.battlescreen.Constants.java
com.me.battlescreen.HumanPlayer.java
com.me.battlescreen.Monster.java
com.me.battlescreen.MyButton.java
com.me.battlescreen.MyLabel.java
com.me.battlescreen.OpponentMonster.java
com.me.battlescreen.PlayerMonster.java
com.me.battlescreen.TimeLabel.java
com.me.battlescreen.UnitButton.java
com.me.battlescreen.getTextures.java
com.me.battlescreen.iAttacking.java
com.me.battlescreen.iHittable.java
com.me.battlescreen.iUpdateable.java
com.me.main.MyGame.java
com.me.main.Player.java
com.me.mygdxgame.MainActivity.java
com.me.openingscreen.AbstractMenu.java
com.me.openingscreen.Constants.java
com.me.openingscreen.FirstMenu.java
com.me.openingscreen.FloatingBackground.java
com.me.openingscreen.OpeningScreen.java
com.me.openingscreen.PlayerMenu.java
com.me.openingscreen.ResetMenu.java
com.me.openingscreen.StatisticsMenu.java
com.me.openingscreen.UpgradeButton.java
com.me.openingscreen.UpgradeMenu.java