Exemple #1
0
 public FamilyTree(CivilizationManager civilManager, HumanRecord record, uint maxDepth)
 {
     MaxDepth     = maxDepth;
     HumanRecord  = record;
     CivilManager = civilManager;
     BuildFamilyTree();
 }
Exemple #2
0
 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();
 }
Exemple #4
0
 public ResearchApplicationDetails(ResearchApplication application, CivilizationManager civManager)
 {
     if (application == null)
     {
         throw new ArgumentNullException("application");
     }
     if (civManager == null)
     {
         throw new ArgumentNullException("civManager");
     }
     _application = application;
     _civManager  = civManager;
 }
Exemple #5
0
 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);
        }
Exemple #7
0
 public SystemRecordList(CivilizationManager civilManager)
 {
     CivilManager = civilManager;
     _records     = new List <T>();
 }
Exemple #8
0
 public CivilizationSystem(CivilizationManager civilManager)
 {
     CivilManager = civilManager;
 }
Exemple #9
0
 public Man(CivilizationManager civilManager, string name)
     : base(civilManager, name, HumanSex.Male)
 {
 }
Exemple #10
0
 public FamilyTree(CivilizationManager civilManager, HumanRecord record)
     : this(civilManager, record, 2)
 {
 }
 public HumanRecordList(CivilizationManager civilManager)
     : base(civilManager)
 {
     SocialSystem = CivilManager.GetSystem <SocialSystem>();
 }