Further work on static side

This commit is contained in:
2024-07-20 16:12:39 +02:00
parent 3845f91601
commit 1b501dee7e
29 changed files with 670 additions and 155 deletions

View File

@@ -30,25 +30,25 @@ public enum MoveCategory
public enum MoveTarget
{
/// <summary>
/// Adjacent allows a move to target any Pokemon that is either directly to the left or right of
/// Adjacent allows a move to target any Pokémon that is either directly to the left or right of
/// the user, opposed to the user, or left or right of the slot that is opposing the user.
/// </summary>
Adjacent = 0,
/// <summary>
/// AdjacentAlly allows a move to target any Pokemon that is directly to the left or right of
/// AdjacentAlly allows a move to target any Pokémon that is directly to the left or right of
/// the user.
/// </summary>
AdjacentAlly,
/// <summary>
/// AdjacentAllySelf allows a move to target any Pokemon that is either directly to the left or
/// AdjacentAllySelf allows a move to target any Pokémon that is either directly to the left or
/// right of the user, or the user itself.
/// </summary>
AdjacentAllySelf,
/// <summary>
/// AdjacentOpponent allows a move to target any Pokemon that is either the opponent, or directly
/// AdjacentOpponent allows a move to target any Pokémon that is either the opponent, or directly
/// to the left or right of it.
/// </summary>
AdjacentOpponent,
@@ -69,22 +69,22 @@ public enum MoveTarget
AllAdjacentOpponent,
/// <summary>
/// AllAlly targets all Pokemon on the same side as the user.
/// AllAlly targets all Pokémon on the same side as the user.
/// </summary>
AllAlly,
/// <summary>
/// AllOpponent targets all Pokemon on an opposing side from the user.
/// AllOpponent targets all Pokémon on an opposing side from the user.
/// </summary>
AllOpponent,
/// <summary>
/// Any allows a move to target a single Pokemon, in any position.
/// Any allows a move to target a single Pokémon, in any position.
/// </summary>
Any,
/// <summary>
/// RandomOpponent allows a move to target a single Pokemon, in a random position.
/// RandomOpponent allows a move to target a single Pokémon, in a random position.
/// </summary>
RandomOpponent,
@@ -97,13 +97,8 @@ public enum MoveTarget
/// <summary>
/// A move is the skill Pokémon primarily use in battle. This is the data related to that.
/// </summary>
public interface IMoveData
public interface IMoveData : INamedValue
{
/// <summary>
/// The name of the move.
/// </summary>
string Name { get; }
/// <summary>
/// The attacking type of the move.
/// </summary>
@@ -154,7 +149,7 @@ public interface IMoveData
public class MoveDataImpl : IMoveData
{
/// <inheritdoc cref="MoveDataImpl" />
public MoveDataImpl(string name, TypeIdentifier moveType, MoveCategory category, byte basePower, byte accuracy,
public MoveDataImpl(StringKey name, TypeIdentifier moveType, MoveCategory category, byte basePower, byte accuracy,
byte baseUsages, MoveTarget target, sbyte priority, ISecondaryEffect? secondaryEffect,
IEnumerable<StringKey> flags)
{
@@ -171,7 +166,7 @@ public class MoveDataImpl : IMoveData
}
/// <inheritdoc />
public string Name { get; }
public StringKey Name { get; }
/// <inheritdoc />
public TypeIdentifier MoveType { get; }