コード例 #1
0
ファイル: Pathfinder.cs プロジェクト: chrishaukap/GameDev
 public Pathfinder(GraphicsDeviceManager g, GameWorldCore gwc)
 {
     mPathNodes = new List<PathNode>();
     mGraphics = g;
     mGameWorld = gwc;
     GenerateMap();
 }
コード例 #2
0
ファイル: Crater.cs プロジェクト: chrishaukap/GameDev
 public Crater(GameWorldCore gwc, Vector2 pos, float radius)
 {
     mRadius = radius;
     mGameWorldCore = gwc;
     mPosition = pos;
     mPrimitiveBatch = new Core.PrimitiveBatch(gwc.Camera, mGameWorldCore.Graphics.GraphicsDevice);
 }
コード例 #3
0
ファイル: Cone.cs プロジェクト: chrishaukap/GameDev
 public Cone(GameWorldCore gwc, Agent castingAgent,
             DirectionOfPull forceDirection )
 {
     mCastingAgent = castingAgent;
     mPosition = castingAgent.CurrentPosition;
     mOrientation = castingAgent.CurrentRotation;
     mTimer = castingAgent.RoarProperties.mDuration;
     mGameWorldCore = gwc;
     mRange = castingAgent.RoarProperties.mRange;
     mDegrees = castingAgent.RoarProperties.mDegrees;
     mForceDirection = forceDirection;
     mPrimitiveBatch = new Core.PrimitiveBatch(gwc.Camera, mGameWorldCore.Graphics.GraphicsDevice);
 }
コード例 #4
0
ファイル: Game1.cs プロジェクト: chrishaukap/GameDev
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            base.Initialize();

            mCamera = new XNA2DCamera(graphics.GraphicsDevice);
            mGameWorld = new GameWorldCore(graphics, mContent, this);
            mGameMouse = new GameMouse(graphics, mContent);
        }