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) {
|
BoulderModel(boolean convertible) {
|
||||||
super("boulder", false,true);
|
super("boulder", false,true);
|
||||||
setPriority(2);
|
setPriority(2);
|
||||||
setAnimate(true);
|
|
||||||
setCollideSound("die");
|
setCollideSound("die");
|
||||||
setConvertibleValue(convertible);
|
setConvertibleValue(convertible);
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ public class DiamondModel extends DisplayableElementModel {
|
|||||||
|
|
||||||
DiamondModel() {
|
DiamondModel() {
|
||||||
super("diamond", true, true);
|
super("diamond", true, true);
|
||||||
setAnimate(true);
|
|
||||||
setCollideSound("coin");
|
setCollideSound("coin");
|
||||||
|
|
||||||
this.initSprites();
|
this.initSprites();
|
||||||
|
@ -19,8 +19,6 @@ public abstract class DisplayableElementModel {
|
|||||||
private final boolean destructible;
|
private final boolean destructible;
|
||||||
private final boolean moving;
|
private final boolean moving;
|
||||||
|
|
||||||
private boolean animate = false;
|
|
||||||
private boolean impactExplosive = false;
|
|
||||||
private int priority = 0;
|
private int priority = 0;
|
||||||
private boolean falling = false;
|
private boolean falling = false;
|
||||||
private boolean convertible = false;
|
private boolean convertible = false;
|
||||||
@ -146,42 +144,6 @@ public abstract class DisplayableElementModel {
|
|||||||
this.priority = priority;
|
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
|
* Sets the sprite
|
||||||
*
|
*
|
||||||
|
@ -49,8 +49,6 @@ public class RockfordModel extends DisplayableElementModel {
|
|||||||
RockfordModel() {
|
RockfordModel() {
|
||||||
super("rockford", true, true);
|
super("rockford", true, true);
|
||||||
setPriority(1);
|
setPriority(1);
|
||||||
setImpactExplosive(true);
|
|
||||||
setAnimate(true);
|
|
||||||
|
|
||||||
// Speed of the animation of the sprite
|
// Speed of the animation of the sprite
|
||||||
this.setSpeed(100);
|
this.setSpeed(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user