Examples of Enemy


Examples of org.sfsoft.jfighter2dx.characters.Enemy

   * @param y Posición inicial y
   * @return El enemigo creado
   */
  public static Enemy createEnemy(EnemyType type, float x, float y, SpriteManager spriteManager) {
   
    Enemy enemy = null;
   
    switch (type) {
   
    case SMALL_ENEMY:
      enemy = new SmallEnemy(x, y, -150f);
View Full Code Here

Examples of org.solarus.editor.entities.Enemy

     * Updates the information displayed in the fields.
     */
    public void update() {
        super.update(); // update the common fields

        Enemy enemy = (Enemy) entity;

        breedField.setSelectedId(enemy.getStringProperty("breed"));
        rankField.setValue(Rank.get(enemy.getIntegerProperty("rank")));

        String savegameVariable = enemy.getStringProperty("savegame_variable");
        if (savegameVariable != null) {
          savegameVariableField.setText(savegameVariable);
          savegameVariableField.setEnabled(true);
          saveField.setSelected(true);
        }
        else {
          savegameVariableField.setEnabled(false);
          saveField.setSelected(false);
        }

        treasureField.setTreasure(
                enemy.getStringProperty("treasure_name"),
                enemy.getIntegerProperty("treasure_variant"),
                enemy.getStringProperty("treasure_savegame_variable"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.