Update BjornGraphicsComponent.java
This commit is contained in:
parent
e9b20f674e
commit
1b5da55d45
@ -4,9 +4,20 @@ import static org.slf4j.LoggerFactory.getLogger;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
|
||||
/**
|
||||
* BjornGraphicsComponent is a class for our main game star
|
||||
* This class creat a Graphics component for Bjorn.
|
||||
*/
|
||||
|
||||
public class BjornGraphicsComponent implements GraphicsComponent {
|
||||
private static final Logger LOGGER = getLogger(BjornGraphicsComponent.class);
|
||||
|
||||
/**
|
||||
* This method is a logger for Bjorn when happens a Graphics update.
|
||||
* In real scenario, there will be code for Graphics Update.
|
||||
*
|
||||
* @param gameObject is a object in the game, here it is Bjorn
|
||||
*/
|
||||
@Override
|
||||
public void update(GameObject gameObject) {
|
||||
LOGGER.info("positive:" + gameObject.getPositionOFx() + "," + gameObject.getPositionOFy());
|
||||
|
Loading…
x
Reference in New Issue
Block a user