public static SimpleTestWorld Create() { var emptyPlayer = new Player { DisplayHandle = Guid.Empty.ToString(), Id = Guid.Empty, Sector = null }; var ret = new SimpleTestWorld(); ret.EmptyPlayer = emptyPlayer; ret.Nodes = CreateSector("SimpleSector_Size_20", 20, emptyPlayer); return ret; }
public static void Initialize(World world) { var playerHugo = new Player { Level = 1, DisplayHandle = "Hugo", Id = Guid.NewGuid(), Sector = new SectorInfo { Id = Guid.NewGuid(), Name = "Sector of Hugo", Zone = new ZoneInfo { Name = "Zone of Hugo", Region = new RegionInfo { Name = "Region of Hugo" } } } }; var playerMorg = new Player { Level = 1, DisplayHandle = "Morg", Id = Guid.NewGuid(), Sector = new SectorInfo { Id = Guid.NewGuid(), Name = "Sector of Morg", Zone = new ZoneInfo { Name = "Zone of Morg", Region = new RegionInfo { Name = "Region of Morg" } } } }; #region Hugo var deck_Hugo = (ConsoleDeck)world.AddPlayer(playerHugo); deck_Hugo.TracePrefix = "Hugo>"; deck_Hugo.TraceForeColor = ConsoleColor.Cyan; #region Scout var hugo_Scout = new Pirate01Scout(); world.AddAgent(hugo_Scout, 1, playerHugo); world.LaunchAgent(hugo_Scout); #endregion Scout #region Defender var hugo_Defender = new Pirate01Defender(); world.AddAgent(hugo_Defender, 1, playerHugo); world.LaunchAgent(hugo_Defender); #endregion Defender #endregion Hugo var deck_Morg = (ConsoleDeck)world.AddPlayer(playerMorg); deck_Morg.TracePrefix = "Morg>"; deck_Morg.TraceForeColor = ConsoleColor.Magenta; #region Scout var morg_Scout = new Pirate01Scout(); world.AddAgent(morg_Scout, 1, playerMorg); world.LaunchAgent(morg_Scout); #endregion Scout #region Dummy var morg_Dummy = new Pirate01Dummy(); world.AddAgent(morg_Dummy, 1, playerMorg); world.LaunchAgent(morg_Dummy); #endregion Dummy }