Files
TeslaSuite/Console/TeslaConsole.RedPlanet/RPFootballPlayer.cs
T
CydandClaude Opus 4.8 548550b312 Initial commit: TeslaSuite monorepo (TeslaConsole + TeslaLauncher)
Co-locate the two cockpit-pod projects into a single repository:

- Console/  : TeslaConsole, the net48 WinForms operator console (decompiled
              reconstruction) plus its differential + catalog test suite.
- Launcher/ : TeslaLauncher, the net6 pod-side Service + Agent rewrite.

Adds a combined TeslaSuite.sln, root README documenting the shared wire
contract (and its current duplication, the main follow-up), and a root
.gitignore. Histories were not preserved per request; this is a fresh start
from the current working state of both projects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 14:43:28 -05:00

38 lines
900 B
C#

using System;
using System.Text;
namespace TeslaConsole.RedPlanet;
[Serializable]
internal class RPFootballPlayer : RPPlayer
{
private readonly string mTeamKey;
private readonly string mPositionKey;
public string TeamKey => mTeamKey;
public string PositionKey => mPositionKey;
public RPFootballPlayer(string podHostAddress, string name, string vehicleKey, string teamKey, string positionKey, string colorKey)
: base(podHostAddress, name, vehicleKey, colorKey, "None")
{
if (teamKey == null)
{
throw new ArgumentNullException("teamKey");
}
if (positionKey == null)
{
throw new ArgumentNullException("positionKey");
}
mTeamKey = teamKey;
mPositionKey = positionKey;
}
protected sealed override void AppendMissionSpecificPilot(int index, StringBuilder sb)
{
sb.AppendFormat("team=team::{0}\n", mTeamKey);
sb.AppendFormat("position={0}\n", mPositionKey);
}
}