blub
This commit is contained in:
parent
fb77d13eb5
commit
56e19e8039
30 changed files with 485 additions and 37 deletions
|
|
@ -20,16 +20,7 @@ package de.welterde.em;
|
|||
*
|
||||
* @author welterde
|
||||
*/
|
||||
public abstract class Entity {
|
||||
protected final EntityStorage ctx;
|
||||
protected final int id;
|
||||
|
||||
public Entity(EntityStorage ctx, int id) {
|
||||
this.id = id;
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
public int getEntityId() {
|
||||
return this.id;
|
||||
}
|
||||
public interface Entity {
|
||||
public int getEntityId();
|
||||
public void initEntity(EntityStorage ctx, int id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue