Files
GladiatorIdle/Game/Hero.cs
Michi a7134b2753 Gladiator Idle (MonoGame) – Spiel mit 3D-Gladiatoren
Nur was zum Bauen und Starten nötig ist: Mono/ (Spiel), Game/, Core/,
Languages/, Assets/ (Bilder, Clips, 3D-Figuren, Ton), build-release.bat.
Bauen: build-release.bat → Spiel\GladiatorIdle.exe

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:57:20 +01:00

40 lines
1.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace GladiatorIdle
{
public enum OfferKind { Easy, Even, Hard, Champion }
/// Gegner zur Wahl (selbst kämpfen): Gegner, Lohn-Faktor, Art.
internal sealed record Offer(Enemy Enemy, double Reward, OfferKind Kind)
{
public string Key => "offer." + Kind.ToString().ToLowerInvariant();
}
/// Teamfarbe: Ziel-Farbton (Grad), Sättigungs- und Helligkeitsfaktor für die Magenta-Flächen.
internal readonly record struct TeamColor(string Id, float Hue, float Sat, float Val)
{
public string Key => "color." + Id;
}
/// <summary>
/// Aussehen des eigenen Gladiators: Vorlage (1–3), Teamfarbe, Wappen. Klein und vollständig
/// serialisierbar — so lässt sich ein Gladiator später für den Mehrspieler hochladen.
/// </summary>
internal sealed record Appearance(int Preset = 1, int Color = 0, int Emblem = 0)
{
public const int PRESETS = 3;
public static readonly TeamColor[] Colors =
{
new("red", 0, 1.0f, 0.95f), new("blue", 218, 1.0f, 0.9f), new("green", 128, 0.85f, 0.75f),
new("purple", 278, 0.9f, 0.85f), new("gold", 44, 0.95f, 1.05f), new("teal", 178, 0.9f, 0.8f),
new("black", 0, 0.08f, 0.32f), new("white", 40, 0.06f, 1.25f),
};
public static readonly string[] Emblems = { "eagle", "wolf", "lion", "bull", "scorpion", "trident", "sun", "laurel" };
public TeamColor TeamColor => Colors[System.Math.Clamp(Color, 0, Colors.Length - 1)];
public string EmblemId => Emblems[System.Math.Clamp(Emblem, 0, Emblems.Length - 1)];
public string EmblemKey => "emblem." + EmblemId;
public string EmblemArt => "emblem_" + EmblemId;
}
}