WindowsGame1.Sprite.Update C# (CSharp) Method

Update() private method

private Update ( GameTime gameTime ) : void
gameTime GameTime
return void
        internal void Update(GameTime gameTime)
        {
            throw new NotImplementedException();
        }

Same methods

Sprite::Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void

Usage Example

Ejemplo n.º 1
0
 public void UpdateTest_Spr()
 {
     Sprite target = new Sprite();
     TimeSpan span = new TimeSpan(0,0,0,0,100); //100 milisecond
     GameTime theGameTime = new GameTime(span, span);
     Vector2 theSpeed = new Vector2(160, 0);
     Vector2 theDirection = new Vector2(-1, 0);
     Vector2 lastPos = target.getPos();
     target.Update(theGameTime, theSpeed, theDirection);
     Assert.IsFalse(lastPos == target.getPos());
 }
All Usage Examples Of WindowsGame1.Sprite::Update