Esempio n. 1
0
        public GameWorld(Display pDisplay)
        {
            aaDisplay = pDisplay;

            mToSpawnEntityList     = new List <Entity>();
            mEntityList            = new List <Entity>();
            mEntityDeadList        = new List <Entity>();
            mProjectileList        = new List <Projectile>();
            mProjDeadList          = new List <Projectile>();
            mRemovedProjectileList = new List <Projectile>();
            mPickups = new List <Pickup>();

            //Init CollisionLists
            CollisionShapes_Circle = new List <CircleCollision>();
            CollisionShapes_Points = new List <PointCollision>();
            CollisionShapes_Lines  = new List <LineCollision>();

            CollisionShapes_Circle_ToRemove = new List <CircleCollision>();
            CollisionShapes_Points_ToRemove = new List <PointCollision>();
            CollisionShapes_Lines_ToRemove  = new List <LineCollision>();

            mRand = new Random();

            mKit_Aimer        = new AssetKit_UI_Aimer();
            mKit_Crosshair    = new AssetKit_UI_Crosshair();
            mKit_HealthBorder = new AssetKit_UI_HealthBar_Border();
            mKit_HealthBar    = new AssetKit_UI_HealthBar_Bar();
            mKit_HealthWhite  = new AssetKit_UI_HealthBar_BarWhite();
            mKit_GameOver     = new AssetKit_GameOver_Score();
            mKit_Paused       = new AssetKit_Paused_Plaque();

            mEntityManager = new EntityManager(this);
        }
Esempio n. 2
0
        public GameWorld(Display pDisplay)
        {
            aaDisplay = pDisplay;

                mToSpawnEntityList = new List<Entity>();
                mEntityList = new List<Entity>();
                mEntityDeadList = new List<Entity>();
                mProjectileList = new List<Projectile>();
                mProjDeadList = new List<Projectile>();
                mRemovedProjectileList = new List<Projectile>();
                mPickups = new List<Pickup>();

                //Init CollisionLists
                CollisionShapes_Circle = new List<CircleCollision>();
                CollisionShapes_Points = new List<PointCollision>();
                CollisionShapes_Lines = new List<LineCollision>();

                CollisionShapes_Circle_ToRemove = new List<CircleCollision>();
                CollisionShapes_Points_ToRemove = new List<PointCollision>();
                CollisionShapes_Lines_ToRemove = new List<LineCollision>();

                mRand = new Random();

                mKit_Aimer = new AssetKit_UI_Aimer();
                mKit_Crosshair = new AssetKit_UI_Crosshair();
                mKit_HealthBorder = new AssetKit_UI_HealthBar_Border();
                mKit_HealthBar = new AssetKit_UI_HealthBar_Bar();
                mKit_HealthWhite = new AssetKit_UI_HealthBar_BarWhite();
                mKit_GameOver = new AssetKit_GameOver_Score();
                mKit_Paused = new AssetKit_Paused_Plaque();

                mEntityManager = new EntityManager(this);
        }