Package com.daven.modelviewcontroller.squaremapping

Examples of com.daven.modelviewcontroller.squaremapping.EightPointCompass


        int x = rand.nextInt( patchesX ) * patchPixelSize;
        int y = rand.nextInt( patchesY ) * patchPixelSize;
        proposedPosition = new Point( x, y );
      } while ( isOccupied( proposedPosition ) );
      int compassOrdinal = rand.nextInt( 8 );
      EightPointCompass orientation = EightPointCompass.fromOrdinal( compassOrdinal );
      population.add( new SlimeMoldCell( this, proposedPosition, orientation, graphics, patchPixelSize, rand ) );
    }
    modelChanged();
  }
View Full Code Here

TOP

Related Classes of com.daven.modelviewcontroller.squaremapping.EightPointCompass

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.