public FamilyTree(CivilizationManager civilManager, HumanRecord record, uint maxDepth) { MaxDepth = maxDepth; HumanRecord = record; CivilManager = civilManager; BuildFamilyTree(); }
public Human(CivilizationManager civilManager, string name, HumanSex sex) { CivilManager = civilManager; Name = name; Sex = sex; DieAge = RandomSelector.GetRandomDouble(CivilManager.GetSystem <SocialSystem>().Config.MaximumAge); _stateMachine = new HumanStateMachine(this); }
public SocialSystem(CivilizationManager civilManager) : base(civilManager) { MarriageRecords = new MarriageRecordList(civilManager); DivorceRecords = new DivorceRecordList(civilManager); HumanRecords = new HumanRecordList(civilManager); DieRecords = new DieRecordList(civilManager); _config = new SocialSystemConfig(); }
public ResearchApplicationDetails(ResearchApplication application, CivilizationManager civManager) { if (application == null) { throw new ArgumentNullException("application"); } if (civManager == null) { throw new ArgumentNullException("civManager"); } _application = application; _civManager = civManager; }
public TileWorld(FeatureWorld features, int height, int width, IWorldHolder holder, WorldMode mode, CivilizationManager civilizationManager, bool wrapVertical, bool wrapHorizontal) { Height = height; Width = width; FeatureWorld = features; WorldType = holder.WorldType; Holder = holder; Mode = mode; CivilizationManager = civilizationManager; WrapVertical = wrapVertical; WrapHorizontal = wrapHorizontal; _worldData = new BitVector32[height, width, features.GetTileSize(WorldType)]; }
private void InitWorldContent() { //game data KeysRoot = new RootKey("root"); YieldManager = new YieldManagerImpl(new Key(KeysRoot, "yield")); WFeatureBiome = new YieldModifyingSSFR <TerrainBiome>(WorldType.World, new Key(KeysRoot, "tb"), false, TileYieldModifierPriority.Terrain); WFeatureVegetation = new YieldModifyingSMFR <TerrainVegetation>(WorldType.World, new Key(KeysRoot, "tv"), TileYieldModifierPriority.Terrain); WFeatureLandform = new YieldModifyingSSFR <TerrainLandform>(WorldType.World, new Key(KeysRoot, "tl"), false, TileYieldModifierPriority.Terrain); //civs CivilizationManager = new CivilizationManager(new Key(KeysRoot, "civs"), 4); }
public SystemRecordList(CivilizationManager civilManager) { CivilManager = civilManager; _records = new List <T>(); }
public CivilizationSystem(CivilizationManager civilManager) { CivilManager = civilManager; }
public Man(CivilizationManager civilManager, string name) : base(civilManager, name, HumanSex.Male) { }
public FamilyTree(CivilizationManager civilManager, HumanRecord record) : this(civilManager, record, 2) { }
public HumanRecordList(CivilizationManager civilManager) : base(civilManager) { SocialSystem = CivilManager.GetSystem <SocialSystem>(); }