Esempio n. 1
0
 public Crater(GameWorldCore gwc, Vector2 pos, float radius)
 {
     mRadius = radius;
     mGameWorldCore = gwc;
     mPosition = pos;
     mPrimitiveBatch = new Core.PrimitiveBatch(gwc.Camera, mGameWorldCore.Graphics.GraphicsDevice);
 }
Esempio n. 2
0
 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);
 }