2015-05-08 21:01:06 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2015-05-09 19:26:35 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Flaming asteroid game object
|
|
|
|
*
|
|
|
|
*/
|
2015-05-08 21:01:06 +03:00
|
|
|
public class FlamingAsteroid extends Meteoroid {
|
|
|
|
|
|
|
|
public FlamingAsteroid(int left, int top, int right, int bottom) {
|
|
|
|
super(left, top, right, bottom);
|
|
|
|
setOnFire(true);
|
|
|
|
}
|
2015-05-08 21:49:04 +03:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void collision(GameObject gameObject) {
|
|
|
|
gameObject.collisionResolve(this);
|
|
|
|
}
|
2015-05-08 21:01:06 +03:00
|
|
|
}
|