Exemple #1
0
 public PhysicsEngine(Player player, Map map)
 {
     m_player = player;
     m_map = map;
     m_timingEngine = new CoreTimingEngine();
     m_fovManager = new FOVManager(this, map);
     m_combatEngine = new CombatEngine(this, player, map);
     m_movableHash = new Dictionary<Point, bool>(PointEqualityComparer.Instance);
     m_magicEffects = new MagicEffectsEngine(this, m_combatEngine);
     UpdatePlayerVisitedStatus();
 }
Exemple #2
0
        public CoreGameEngine()
        {
            m_instance = this;

            m_saveLoad = new SaveLoadCore();

            m_timingEngine = new CoreTimingEngine();
            m_monsterSkillEngine = new MonsterSkillEffectEngine(this);

            m_dungeon = new Dictionary<int, Map>();

            StairsMapping.Setup();

            CoreGameEngineInterface.SetupCoreGameEngineInterface(this);
        }