예제 #1
0
        internal override void Update(CFrameInfo aFrameInfo)
        {
            base.Update(aFrameInfo);

            this.WorldMatrix = this.NewWorldMatrix();
            this.Reposition();
        }
예제 #2
0
        internal override void Update(CFrameInfo aFrameInfo)
        {
            base.Update(aFrameInfo);
            this.Orbit = default;

            this.UpdateCurrentRadians();
            this.WorldPos = this.GetWorldPosByOrbitRadians(this.OrbitCurrentRadians.Value);
            this.UpdateOrbit();
        }
예제 #3
0
 internal virtual void Update(CFrameInfo aFrameInfo)
 {
     if (this.TimeToLive.HasValue)
     {
         this.TimeToLive = this.TimeToLive.Value.Subtract(aFrameInfo.GameTimeElapsed);
         if (this.TimeToLive.Value.TotalMilliseconds < 0d)
         {
             this.DeallocateIsQueued = true;
         }
     }
 }
예제 #4
0
파일: Bumper.cs 프로젝트: DeepSeeBee/Mvi
 internal override void Update(CFrameInfo aFrameInfo)
 {
     base.Update(aFrameInfo);
     this.IsNearestAsteroidToAvatar = aFrameInfo.NearestBumperIsDefined &&
                                      aFrameInfo.NearestAsteroid.RefEquals <CBumperSprite>(this);
     if (this.WormholeIsEnabled &&
         !this.Destroyed)
     {
         this.WormholeCubes.Swap(this);
     }
 }
예제 #5
0
        internal override void Update(CFrameInfo aFrameInfo)
        {
            base.Update(aFrameInfo);

            this.WorldPos = this.WorldPos + this.MoveVector.Value.MakeLongerDelta(this.Speed.Value * aFrameInfo.GameTimeElapsed.TotalSeconds);
            //this.WorldMatrix = Matrix.CreateScale((float)this.Scale) * Matrix.CreateTranslation(this.WorldPos.Value.ToVector3());
            this.WorldMatrix = this.NewWorldMatrix(CMatrixModifierBitEnum.Scale | CMatrixModifierBitEnum.Position);
            this.Reposition();
            if (this.DistanceToAvatar > CStaticParameters.Shot_DieOnDistanceToAvatar)
            {
                this.DellocateIsQueued = true;
            }
        }
예제 #6
0
        internal override void Update(CFrameInfo aFrameInfo)
        {
            var a = this.SpriteNullablesArray;
            var c = a.Length;

            for (var i = 0; i < c; ++i)
            {
                var s = a[i];
                if (s is object)
                {
                    s.Update(aFrameInfo);
                }
            }
        }
예제 #7
0
        internal override void Update(CFrameInfo aFrameInfo)
        {
            base.Update(aFrameInfo);
            if (this.RemainingActiveTime.HasValue)
            {
                var aRemainingActiveTime = this.RemainingActiveTime.Value.Subtract(aFrameInfo.GameTimeElapsed);
                this.RemainingActiveTime = aRemainingActiveTime.TotalMilliseconds > 0
                                        ? aRemainingActiveTime
                                        : default(TimeSpan?)
                ;
            }

            if (this.IsHiddenInWorld.Value &&
                !this.IsReferenced)
            {
                this.DeallocateIsQueued = true;
            }
        }
예제 #8
0
 internal abstract void Update(CFrameInfo aFrameInfo);