Exemplo n.º 1
0
 public ToungueData(Data.FrogData data)
 {
     mStateTimes = new float[(int)ToungueStages.Extending + 1];
     mStateTimes[(int)ToungueStages.Extending]  = data.ToungueExtendTime;
     mStateTimes[(int)ToungueStages.Extended]   = data.ToungueFullyExtendedTime;
     mStateTimes[(int)ToungueStages.Retracting] = data.ToungueRetractTime;
     mStateTimes[(int)ToungueStages.Refreshing] = data.ToungueRefreshTime;
 }
Exemplo n.º 2
0
 public FrogSwimData(Data.FrogData frogData)
 {
     SwimKickDuration       = frogData.SwimKickDuration;
     SwimKickRecharge       = frogData.SwimKickRecharge;
     SwimAccelerationModule = frogData.SwimKickVelocity * frogData.WaterDrag;
     WaterDrag = frogData.WaterDrag;
     Density   = frogData.FrogDensity;
 }
Exemplo n.º 3
0
 public RanitasDependencies(float deltaTime, Data.PondData pondData, Data.FrogData frogData, Data.FlyData flyData, Data.FlyDirectionChangeData directionChangeData, Data.FlyNoiseData flyNoiseData, Data.FrogAnimationData animationData, Texture2D frogSprite, GraphicsDevice graphicsDevice, SpriteFont uiFont)
 {
     Time                = new FrameTime(deltaTime);
     FrogData            = frogData;
     PondData            = pondData;
     FlyData             = flyData;
     FlyNoiseData        = flyNoiseData;
     DirectionChangeData = directionChangeData;
     AnimationData       = animationData;
     PondState           = new Pond.PondSimState(pondData);
     GraphicsDevice      = graphicsDevice;
     FrogSprite          = frogSprite;
     UIFont              = uiFont;
 }
 public FrogShapeDeformationSystem(Data.FrogData frogData)
 {
     mOriginalFrogShape = new RectShape(frogData.Width, frogData.Height);
     mDeformationData   = new FrogShapeDeformationData(frogData);
 }
 public FrogShapeDeformationData(Data.FrogData data)
 {
     JumpSquish = data.MovementData.JumpSquish;
 }
 public SwimingFrogPhysicsSystem(FrameTime frameTime, PondSimState pond, Data.FrogData frogData)
 {
     mTime     = frameTime;
     mPond     = pond;
     mSwimData = new FrogSwimData(frogData);
 }
Exemplo n.º 7
0
 public FrogJumpData(Data.FrogData data)
 {
     JumpPrepareTime = data.MovementData.JumpPrepareTime;
     JumpSpeed       = data.MovementData.JumpVelocity;
 }
 public TounguePositionSystem(Data.FrogData data)
 {
     mShapeData = new ToungueShapeData(data);
 }
Exemplo n.º 9
0
 public ToungueShapeSystem(Data.FrogData data)
 {
     mToungueData  = new ToungueData(data);
     mShapeData    = new ToungueShapeData(data);
     mDoneToungues = new List <Entity>();
 }
Exemplo n.º 10
0
 public ToungueShapeData(Data.FrogData frogData)
 {
     Length    = frogData.ToungueLength;
     Thickness = frogData.ToungueThickness;
     RelativeVerticalOffset = frogData.ToungueRelativeVerticalOffset;
 }
Exemplo n.º 11
0
 public FrogInputSystem(FrameTime time, Data.FrogData frogData)
 {
     mTime     = time;
     mJumpData = new FrogJumpData(frogData);
     mSwimData = new FrogSwimData(frogData);
 }
Exemplo n.º 12
0
 public ToungueSystem(Data.FrogData data, FrameTime time)
 {
     mData          = new ToungueData(data);
     mTime          = time;
     mTransitioning = new List <Entity>();
 }