1b: rm animate, impactExplosive
This commit is contained in:
parent
55fab7af24
commit
fd9fd294db
@ -13,7 +13,6 @@ public class BoulderModel extends DisplayableElementModel {
|
||||
BoulderModel(boolean convertible) {
|
||||
super("boulder", false,true);
|
||||
setPriority(2);
|
||||
setAnimate(true);
|
||||
setCollideSound("die");
|
||||
setConvertibleValue(convertible);
|
||||
|
||||
|
@ -24,7 +24,6 @@ public class DiamondModel extends DisplayableElementModel {
|
||||
|
||||
DiamondModel() {
|
||||
super("diamond", true, true);
|
||||
setAnimate(true);
|
||||
setCollideSound("coin");
|
||||
|
||||
this.initSprites();
|
||||
|
@ -19,8 +19,6 @@ public abstract class DisplayableElementModel {
|
||||
private final boolean destructible;
|
||||
private final boolean moving;
|
||||
|
||||
private boolean animate = false;
|
||||
private boolean impactExplosive = false;
|
||||
private int priority = 0;
|
||||
private boolean falling = false;
|
||||
private boolean convertible = false;
|
||||
@ -146,42 +144,6 @@ public abstract class DisplayableElementModel {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the 'animate' value
|
||||
*
|
||||
* @return Whether object is animated or not
|
||||
*/
|
||||
public boolean isAnimate() {
|
||||
return this.animate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the 'animate' value
|
||||
*
|
||||
* @return animate Whether object is animated or not
|
||||
*/
|
||||
public void setAnimate(boolean animate) {
|
||||
this.animate = animate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the 'impact explosive' value
|
||||
*
|
||||
* @return Whether object explodes on impact or not
|
||||
*/
|
||||
public boolean isImpactExplosive() {
|
||||
return this.impactExplosive;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the 'impact explosive' value
|
||||
*
|
||||
* @return impactExplosive Whether object explodes on impact or not
|
||||
*/
|
||||
public void setImpactExplosive(boolean impactExplosive) {
|
||||
this.impactExplosive = impactExplosive;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sprite
|
||||
*
|
||||
|
@ -49,8 +49,6 @@ public class RockfordModel extends DisplayableElementModel {
|
||||
RockfordModel() {
|
||||
super("rockford", true, true);
|
||||
setPriority(1);
|
||||
setImpactExplosive(true);
|
||||
setAnimate(true);
|
||||
|
||||
// Speed of the animation of the sprite
|
||||
this.setSpeed(100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user