From 204a1fedd26036ce05dcd0c99f931bc2737a53b7 Mon Sep 17 00:00:00 2001 From: 1pablo10 <115900617+1pablo10@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:43:02 +0100 Subject: [PATCH] Add files via upload --- company/space/hmlovina.java | 17 +++++++++++++++++ company/space/vesmir.java | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 company/space/hmlovina.java create mode 100644 company/space/vesmir.java 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--; + } + } +} +