Create Entity API scaffolding
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.bartlomiejpluta.base.api.context;
|
||||
|
||||
import com.bartlomiejpluta.base.api.entity.Entity;
|
||||
|
||||
public interface Context {
|
||||
void openMap(String mapUid);
|
||||
|
||||
Entity createEntity(String entitySetUid);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.bartlomiejpluta.base.api.entity;
|
||||
|
||||
import com.bartlomiejpluta.base.api.geo.Vector;
|
||||
|
||||
public interface Entity {
|
||||
Vector getCoordinates();
|
||||
|
||||
void setCoordinates(Vector coordinates);
|
||||
|
||||
Movement prepareMovement(Direction direction);
|
||||
|
||||
Direction getFaceDirection();
|
||||
|
||||
void setFaceDirection(Direction direction);
|
||||
}
|
||||
Reference in New Issue
Block a user