Evolution_War.Controller.Loop C# (CSharp) Метод

Loop() публичный абстрактный Метод

public abstract Loop ( MovingObject pShip ) : void
pShip MovingObject
Результат void
        public abstract void Loop(MovingObject pShip);

Usage Example

Пример #1
0
        public void Loop()
        {
            LoopResultStates.Clear();

            // update input.
            controller.Loop(this);

            // position and angle memory.
            ox  = x;
            oy  = y;
            odx = dx;
            ody = dy;
            oa  = a;
            oda = da;
            // overridable control and friction physics.
            LoopControlPhysics();
            LoopFrictionPhysics();
            LoopCollisionPhysics();

            // advance position.
            x += dx;
            y += dy;
            oa = a % 360 + oa - a;
            a  = a % 360 + da;
        }
Controller