Guest User

Untitled

a guest
Mar 25th, 2019
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Minen {
  2. public static final int MINEN = 99;
  3. public Mine[] MinenArray = new Mine[MINEN];
  4.  
  5. public Minen(){
  6. for(int i = 0; i < MINEN; i++){
  7. int randomX = (int)(Math.random()*Anzeige.X + 1);
  8. int randomY = (int)(Math.random()*Anzeige.Y + 1);
  9. MinenArray[i]= new Mine(randomX,randomY);
  10. }
  11. }
  12. public Mine get(int index){
  13. return MinenArray[index];
  14. }
  15. }
RAW Paste Data