diff --git a/company/space/hmlovina.java b/company/space/hmlovina.java new file mode 100644 index 0000000..c023828 --- /dev/null +++ b/company/space/hmlovina.java @@ -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; + } +} diff --git a/company/space/vesmir.java b/company/space/vesmir.java new file mode 100644 index 0000000..e92338b --- /dev/null +++ b/company/space/vesmir.java @@ -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--; + } + } +} +