Changed package naming across all examples.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.iluwatar.doubledispatch;
|
||||
|
||||
/**
|
||||
*
|
||||
* Flaming asteroid game object
|
||||
*
|
||||
*/
|
||||
public class FlamingAsteroid extends Meteoroid {
|
||||
|
||||
public FlamingAsteroid(int left, int top, int right, int bottom) {
|
||||
super(left, top, right, bottom);
|
||||
setOnFire(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collision(GameObject gameObject) {
|
||||
gameObject.collisionResolve(this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user