enum EntityState { staticObj, idle, patrolling, shooting, pain, dead } class Entity { double x; double y; int spriteIndex; double angle; EntityState state; int mapId; Entity({ required this.x, required this.y, required this.spriteIndex, this.angle = 0.0, this.state = EntityState.staticObj, this.mapId = 0, }); }