Delete BjornPhysicsComponent.java
This commit is contained in:
committed by
Ilkka Seppälä
parent
18b3fa312f
commit
b0d17a00cd
@ -1,27 +0,0 @@
|
|||||||
package com.iluwater.component;
|
|
||||||
|
|
||||||
import static org.slf4j.LoggerFactory.getLogger;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* BjornPhysicsComponent is a class for our main game star
|
|
||||||
* This class creat a Physics component for Bjorn.
|
|
||||||
*/
|
|
||||||
public class BjornPhysicsComponent implements PhysicsComponent{
|
|
||||||
|
|
||||||
private static final Logger LOGGER = getLogger(BjornPhysicsComponent.class);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is a logger for Bjorn when happens a Physics update.
|
|
||||||
* In real scenario, there will be code for Physics Update.
|
|
||||||
*
|
|
||||||
* @param gameObject is a object in the game, here it is Bjorn
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void update(GameObject gameObject) {
|
|
||||||
if(gameObject.getPositionOFx() == gameObject.getPositionOFy()){
|
|
||||||
LOGGER.info("Your position is pretty good, keep it!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user