internal DrawElement getDrawElement() { drawElementAlive.setPos(physics.x, physics.y); drawElementDying.setPos(physics.x, physics.y); drawElementDead.setPos(physics.x, physics.y); if (state == CatState.ALIVE) { return(drawElementAlive); } if (state == CatState.DYING) { return(drawElementDying); } else { return(drawElementDead); } }
public DrawElement getDrawElement() { drawElement.setPos(physics.x, physics.y); return(drawElement); }