45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package fr.enssat.BoulderDash.models.displayableElement;
|
|
|
|
|
|
/**
|
|
* DirtModel
|
|
*
|
|
* Represents the dirt in the game.
|
|
*
|
|
* @author Colin Leverger <me@colinleverger.fr>
|
|
* @since 2015-06-19
|
|
*/
|
|
public class DirtModel extends DisplayableElementModel {
|
|
private static String spriteName;
|
|
private static boolean isDestructible;
|
|
private static boolean canMove;
|
|
private static boolean impactExplosive;
|
|
private static boolean animate;
|
|
private static int priority;
|
|
private static boolean falling;
|
|
private static String collideSound;
|
|
|
|
/**
|
|
* Static dataset
|
|
* Specifies the physical parameters of the object
|
|
*/
|
|
static {
|
|
spriteName = "dirt";
|
|
isDestructible = true;
|
|
canMove = false;
|
|
impactExplosive = false;
|
|
animate = false;
|
|
priority = 0;
|
|
falling = false;
|
|
collideSound = null;
|
|
}
|
|
|
|
/**
|
|
* Class constructor
|
|
*/
|
|
DirtModel() {
|
|
super(isDestructible, canMove, spriteName, priority, impactExplosive, animate, falling, collideSound);
|
|
|
|
this.loadSprite(spriteName);
|
|
}
|
|
} |