Add files via upload
This commit is contained in:
parent
4db5544e81
commit
204a1fedd2
17
company/space/hmlovina.java
Normal file
17
company/space/hmlovina.java
Normal 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
29
company/space/vesmir.java
Normal 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--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user