Package plar.core

Examples of plar.core.ActionTimer


        Common.info(1, "nuova mina!");
        explosionTime = 5;
        lifeTime = 6;
        ActionLifeTimer alt = new ActionLifeTimer();
        actions.addAction("alt", alt);
        actions.addAction("mine", new ActionTimer("",explosionTime,0,false) {


            public Object force(Object o) {

                Mine mme = (Mine) me;
View Full Code Here


        reducedSize = new Vec2(0.3f, 0.35f);
        standardSize = new Vec2(0.3f, 0.7f);
        setBoxShape(standardSize.x, standardSize.y);
        fireTime=0.7f;
        ActionTimer at = new ActionTimer("",fireTime,0,true) {

            public Object force(Object o)
            {

                ((ElementPlayer)me).isFiring=false;

                active=false;
                return null;

            }
        };
        ActionTimer jt = new ActionTimer("",jumpTime,0,true) {

            public Object force(Object o)
            {

                active=((ElementPlayer)me).isJumping=((ElementPlayer)me).isOnAir();
View Full Code Here

TOP

Related Classes of plar.core.ActionTimer

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.