Package de.christopherstock.lib.game

Examples of de.christopherstock.lib.game.LibShot


        }

        @Override
        public final LibShot getShot( float modZ )
        {
            return new LibShot
            (
                ShotType.ESharpAmmo,
                LibShot.ShotOrigin.EEnemies,

                LibMath.getRandom( -10, 10 ) + modZ,       // 0.0f,   //irregularityHorz
View Full Code Here


            );
        }

        public final LibShot getViewShot()
        {
            return new LibShot
            (
                ShotType.EViewOnly,
                LibShot.ShotOrigin.EEnemies,
                0.0f,   //irregularityHorz
                0.0f,   //irregularityVert
View Full Code Here

        }

        public final boolean botSeesThePlayer()
        {
            //check if this enemy bot sees the player - copy current angle
            LibShot       shot     = getViewShot();
            LibHitPoint[] hitPoint = Level.currentSection().launchShot( shot );

            //draw view shot line
            //shot.drawShotLine( FxSettings.LIFETIME_DEBUG );
View Full Code Here

        {
            boolean isFirearm = ( iArtefactSet.getArtefactType().iArtefactKind instanceof FireArm );
            return
            (
                    isFirearm
                ?   new LibShot
                    (
                        ShotType.ESharpAmmo,
                        LibShot.ShotOrigin.EPlayer,
                        ( (FireArm)( iArtefactSet.getArtefactType().iArtefactKind ) ).getCurrentIrregularityHorz(),
                        ( (FireArm)( iArtefactSet.getArtefactType().iArtefactKind ) ).getCurrentIrregularityVert(),
                        iCylinder.getAnchor().x    + ( LibMath.sinDeg( iView.iRot.z + 90.0f ) * iView.iHandTransX ) - ( LibMath.sinDeg( iView.iRot.z ) * iView.iHandTransY ),
                        iCylinder.getAnchor().y    + ( LibMath.cosDeg( iView.iRot.z + 90.0f ) * iView.iHandTransX ) - ( LibMath.cosDeg( iView.iRot.z ) * iView.iHandTransY ),
                        iCylinder.getAnchor().z + iView.iDepthHand,
                        iView.iRot.z,
                        iView.iRot.x,
                        iArtefactSet.getArtefactType().getShotRange(),
                        iArtefactSet.getArtefactType().iArtefactKind.getBulletHoleSize(),
                        ShooterDebug.shotAndHit,
                        iArtefactSet.getArtefactType().iArtefactKind.getSliverParticleQuantity(),
                        FxSettings.SLIVER_ANGLE_MOD,
                        iArtefactSet.getArtefactType().getDamage(),
                        iArtefactSet.getArtefactType().iArtefactKind.getSliverParticleSize(),
                        iArtefactSet.getArtefactType().getBreaksWalls(),
                        ( (FireArm)iArtefactSet.getArtefactType().iArtefactKind ).getProjectile(),
                        General.FADE_OUT_FACES_TOTAL_TICKS
                    )
                :   new LibShot
                    (
                        ShotType.ESharpAmmo,
                        LibShot.ShotOrigin.EPlayer,
                        modHorzCC,
                        0.0f,
View Full Code Here

TOP

Related Classes of de.christopherstock.lib.game.LibShot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.