Initial setup for testing AI performance, random fixes
All checks were successful
Build / Build (push) Successful in 54s
All checks were successful
Build / Build (push) Successful in 54s
This commit is contained in:
@@ -105,4 +105,28 @@ public class MoveChoice : TurnChoice, IMoveChoice
|
||||
GetOwnScripts(scripts);
|
||||
User.CollectScripts(scripts);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString() =>
|
||||
$"MoveChoice: {ChosenMove.MoveData.Name}, Target: {TargetSide}:{TargetPosition}, User: {User}";
|
||||
|
||||
protected bool Equals(MoveChoice other) =>
|
||||
other.User == User && other.ChosenMove.Equals(ChosenMove) && other.TargetSide == TargetSide &&
|
||||
other.TargetPosition == TargetPosition;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is null)
|
||||
return false;
|
||||
if (ReferenceEquals(this, obj))
|
||||
return true;
|
||||
if (obj is not MoveChoice other)
|
||||
return false;
|
||||
return Equals(other);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int GetHashCode() =>
|
||||
HashCode.Combine(User, ChosenMove, TargetSide, TargetPosition);
|
||||
}
|
||||
Reference in New Issue
Block a user