Exemplo n.º 1
0
        public override cForce copy()
        {
            aiEnemyForce f = new aiEnemyForce(point);

            f.copy(this);
            return(f);
        }
Exemplo n.º 2
0
        /* 25.0 seems to work well as a default value.
         * Since I often use this in 2D games, we'll make the default gravity be negative Y reather than
         * the negative Z we'd normally want for 3D games. */

        public override void copy(cForce pforce)
        {
            base.copy(pforce);
            if (!(pforce is aiEnemyForce))
            {
                return;
            }
            aiEnemyForce pforcechild = (aiEnemyForce)(pforce);

            _pulldirection = pforcechild._pulldirection;
        }