Formation refactored to enum

This commit is contained in:
2024-04-05 19:37:45 -04:00
parent 627a35e364
commit ec405226c5
4 changed files with 91 additions and 121 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import engine.exception.MsgSendException;
import engine.math.Bounds;
import engine.math.Vector3f;
import engine.math.Vector3fImmutable;
import engine.mbEnums;
import engine.mbEnums.DispatchChannel;
import engine.mbEnums.GameObjectType;
import engine.mbEnums.ModType;
@@ -399,7 +400,7 @@ public enum MovementManager {
// All checks passed, let's move the player
// First get the offset position
Vector3f offset = Formation.getOffset(group.getFormation(), pos);
Vector3f offset = mbEnums.FormationType.getOffset(group.getFormation(), pos);
Vector3fImmutable destination = pc.getEndLoc();
// offset forwards or backwards
destination = destination.add(faceDir.mult(offset.z));