Package org.gbcpainter.game.model

Examples of org.gbcpainter.game.model.Player.modifiesColor()


            //If the path wasn't created yet, create it
            playerPath = new PathAnimationImpl();
            playerPath.startNewPartthis.playerDirection );
            playerPath.addPoint( playerPosition );

            if ( player.modifiesColor() ) {
              utilPushAnimation( entitiesColoringTrace,
                                 playerFooting,
                                 playerPath,
                                 player.isColoring(),
                                 playerPath.getNewPart() );
View Full Code Here


                                 playerPath.getNewPart() );
            }
          } else if ( changedDirection ) {
            playerPath.startNewPartthis.playerDirection );
            playerPath.addPoint( playerPosition );
            if ( player.modifiesColor() ) {
              utilPushAnimation( entitiesColoringTrace,
                                 playerFooting,
                                 playerPath,
                                 player.isColoring(),
                                 playerPath.getNewPart() );
View Full Code Here

          if ( ! playerFooting.contains( playerPosition ) ) {
            //The player changed grid element, the animations must be applied to this element too
            playerFooting = findElementRelativeTo( this.levelGraph, playerFooting,
                                                   this.playerDirection );
            this.painter.setSecond( playerFooting );
            if ( player.modifiesColor() ) {
              utilPushAnimation( entitiesColoringTrace,
                                 playerFooting,
                                 playerPath,
                                 player.isColoring(),
                                 playerPath.getNewPart() );
View Full Code Here

                                 player.isColoring(),
                                 playerPath.getNewPart() );
            }
          }

          if ( player.modifiesColor() ) {
            //Colors this part of the grid

            if ( playerFooting.isColoredAt( playerPosition ) != player.isColoring() ) {
              if ( player.isColoring() ) {
                this.addScore( COLORING_SCORE );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.