Add files via upload

This commit is contained in:
1pablo10 2022-11-07 22:43:02 +01:00 committed by GitHub
parent 4db5544e81
commit 204a1fedd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package company.space;
public class hmlovina {
private long size;
private long lifetime;
private float posX;
private float posY;
private float posZ;
public hmlovina() {
size = 1000;
lifetime = 1000000;
posX = 0;
posY = 0;
posZ = 0;
}
}

29
company/space/vesmir.java Normal file
View File

@ -0,0 +1,29 @@
package company.space;
public class vesmir {
private boolean state;
private long size;
private String name;
public vesmir() {
state = false;
size = 0;
name = "jozkoferko";
}
public void startVesmir(){
state = true;
System.out.println("Startujem vesmir");
increaseSize();
}
private void increaseSize(){
while(size < 1000) {
size++;
}
}
private void decreaseSize(long desiredSize){
while(size > desiredSize){
size--;
}
}
}