This commit is contained in:
m-mun
2026-09-04 12:52:46 +09:00
commit e905477c8d
54 changed files with 2813 additions and 0 deletions

24
src/ai/state/Stand.java Normal file
View File

@@ -0,0 +1,24 @@
package ai.state;
import ai.AITransition;
import entity.Entity;
import game.GameLoop;
import state.State;
public class Stand extends AIState {
private int alive;
public Stand() {
this.alive = 0;
}
@Override
public AITransition initTransition() {
return new AITransition("wander", ((state, eneity) -> alive >= GameLoop.ups * 3));
}
@Override
public void update(State state, Entity entity) {
alive++;
}
}