1b: rm animate, impactExplosive

This commit is contained in:
Daniel Langbein 2024-11-28 17:43:03 +01:00
parent 55fab7af24
commit fd9fd294db
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
4 changed files with 0 additions and 42 deletions

View File

@ -13,7 +13,6 @@ public class BoulderModel extends DisplayableElementModel {
BoulderModel(boolean convertible) {
super("boulder", false,true);
setPriority(2);
setAnimate(true);
setCollideSound("die");
setConvertibleValue(convertible);

View File

@ -24,7 +24,6 @@ public class DiamondModel extends DisplayableElementModel {
DiamondModel() {
super("diamond", true, true);
setAnimate(true);
setCollideSound("coin");
this.initSprites();

View File

@ -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
*

View File

@ -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);