diff --git a/MyFirstUniverseV2/.idea/inspectionProfiles/Project_Default.xml b/MyFirstUniverseV2/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..759552c --- /dev/null +++ b/MyFirstUniverseV2/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/MyFirstUniverseV2/.idea/workspace.xml b/MyFirstUniverseV2/.idea/workspace.xml index 17bf568..704ad36 100644 --- a/MyFirstUniverseV2/.idea/workspace.xml +++ b/MyFirstUniverseV2/.idea/workspace.xml @@ -10,8 +10,8 @@ @@ -96,6 +96,11 @@ "settings.editor.selected.configurable": "inlay.hints" } } + + + + + @@ -170,4 +180,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/MyFirstUniverseV2/src/com/company/Main.java b/MyFirstUniverseV2/src/com/company/Main.java index 70a3c32..515d4a4 100644 --- a/MyFirstUniverseV2/src/com/company/Main.java +++ b/MyFirstUniverseV2/src/com/company/Main.java @@ -7,9 +7,9 @@ import com.company.cosmicbody.Star; import com.company.creature.Creature; import com.company.creature.MarineMammals; import com.company.creature.Mucha; -import com.company.creature.birds.Eagle; -import com.company.creature.fish.Kapor; -import com.company.creature.fish.Nemo; +import com.company.creature.stavovce.stavovcediely.birds.Eagle; +import com.company.creature.stavovce.stavovcediely.fish.Kapor; +import com.company.creature.stavovce.stavovcediely.fish.Nemo; import com.company.universe.Galaxy; import com.company.universe.PlanetaryNebula; import com.company.universe.Universe; @@ -101,18 +101,15 @@ public class Main { Kapor vianocnykapor = new Kapor(50); Date dNow = new Date(); vianocnykapor.born(dNow); - Earth earth = new Earth(); - earth.addCreature(vianocnykapor); + motherEarth.addCreature(vianocnykapor); vianocnykapor.move(10,10,0); vianocnykapor.die(dNow); - earth.addCreature(new Nemo()); - earth.addCreature(new Eagle()); + motherEarth.addCreature(new Nemo()); + motherEarth.addCreature(new Eagle()); Mucha vinnamuska = new Mucha(); - earth.addCreature(vinnamuska); - - + motherEarth.addCreature(vinnamuska); System.out.println("\n"); diff --git a/MyFirstUniverseV2/src/com/company/creature/cicavce/Cicavec.java b/MyFirstUniverseV2/src/com/company/creature/cicavce/Cicavec.java new file mode 100644 index 0000000..36f9288 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/cicavce/Cicavec.java @@ -0,0 +1,27 @@ +package com.company.creature.cicavce; + +import com.company.creature.stavovce.stavovcediely.Stavovec; +import com.company.creature.stavovce.stavovcediely.sustavy.*; + +public abstract class Cicavec extends Stavovec implements cicable{ + private float temperature; + + + + @Override + public void create_sustavy() { + sustavy[0] = new ObehovaSustavaStavovec(TypSustavy.OBEHOVA); + sustavy[1] = new OpovovaSustavaStavovec(TypSustavy.OPOROVA); + sustavy[2] = new VylucovaciaSustavaStavovec(TypSustavy.VYLUCOVACIA); + sustavy[3] = new PohybovaSustavaStavovec(TypSustavy.POHYBOVA); + sustavy[4] = new DychaciaSustavaStavovec(TypSustavy.DUCHACIA); + sustavy[5] = new TraviacaSustavaStavovec(TypSustavy.TRAVIACA); + sustavy[6] = new RozmnovaciaSustavaStavovec(TypSustavy.ROZMNOZOVACIA); + sustavy[7] = new NervovaSustavaStavovec_Default(TypSustavy.NEROVA); + } + + public Cicavec(int pocet_stavcov) { + super(pocet_stavcov); + this.temperature = 36; + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/cicavce/Materske_mlieko.java b/MyFirstUniverseV2/src/com/company/creature/cicavce/Materske_mlieko.java new file mode 100644 index 0000000..9735eb8 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/cicavce/Materske_mlieko.java @@ -0,0 +1,4 @@ +package com.company.creature.cicavce; + +public class Materske_mlieko { +} diff --git a/MyFirstUniverseV2/src/com/company/creature/cicavce/cicable.java b/MyFirstUniverseV2/src/com/company/creature/cicavce/cicable.java new file mode 100644 index 0000000..5a7f2d9 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/cicavce/cicable.java @@ -0,0 +1,6 @@ +package com.company.creature.cicavce; + +public interface cicable { + public void cicat (Cicavec mama); + public void cicat(Materske_mlieko mliecko); +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Chrbtica.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Chrbtica.java new file mode 100644 index 0000000..3d6667e --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Chrbtica.java @@ -0,0 +1,13 @@ +package com.company.creature.stavovce.stavovcediely; + +public class Chrbtica { + private Stavec[] stavce; + + public Chrbtica(int pocet_stavcov) { + this.stavce = new Stavec[pocet_stavcov]; + } + + public Chrbtica() { + this.stavce = new Stavec[11]; + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavec.java new file mode 100644 index 0000000..45e727e --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavec.java @@ -0,0 +1,4 @@ +package com.company.creature.stavovce.stavovcediely; + +public class Stavec { +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavovec.java new file mode 100644 index 0000000..f6f2eb6 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/Stavovec.java @@ -0,0 +1,49 @@ +package com.company.creature.stavovce.stavovcediely; + +import com.company.creature.Creature; +import com.company.creature.stavovce.stavovcediely.sustavy.*; + +import java.util.Date; + +public class Stavovec extends Creature { + + protected Chrbtica chrbtica; + protected Sustava[] sustavy; + + public Stavovec(int pocet_stavcov){ + chrbtica = new Chrbtica(pocet_stavcov); + //create_sustavy(); + } + + protected void create_sustavy(){ + sustavy = new Sustava[8]; + + sustavy[0] = new ObehovaSustavaStavovec(TypSustavy.OBEHOVA); + sustavy[1] = new OpovovaSustavaStavovec(TypSustavy.OPOROVA); + sustavy[2] = new VylucovaciaSustavaStavovec(TypSustavy.VYLUCOVACIA); + sustavy[3] = new PohybovaSustavaStavovec(TypSustavy.POHYBOVA); + sustavy[4] = new DychaciaSustavaStavovec(TypSustavy.DUCHACIA); + sustavy[5] = new TraviacaSustavaStavovec(TypSustavy.TRAVIACA); + sustavy[6] = new RozmnovaciaSustavaStavovec(TypSustavy.ROZMNOZOVACIA); + sustavy[7] = new NervovaSustavaStavovec_Default(TypSustavy.NEROVA); + } + + public Sustava[] getSustavy() { + return sustavy; + } + + @Override + public void born(Date DayOfBirth) { + + } + + @Override + public void move(int directionX, int directionY, int directionZ) { + + } + + @Override + public void die(Date DayOfDie) { + + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Bird.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Bird.java new file mode 100644 index 0000000..16f07c4 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Bird.java @@ -0,0 +1,52 @@ +package com.company.creature.stavovce.stavovcediely.birds; + +import com.company.creature.stavovce.stavovcediely.Stavovec; + +import java.util.Date; + +public abstract class Bird extends Stavovec { + private String name; + private double height; + private double weight; + private String type; + + public Bird(int pocet_stavcov){ + super(pocet_stavcov); + } + + public Bird(String name, double height, double weight, String type, int pocet_stavcov) { + super(pocet_stavcov); + this.name = name; + this.height = height; + this.weight = weight; + this.type = type; + System.out.println("Bird is: " + name + " has been created. Parameters: " + height + "cm, " + weight + "kg. Type - " + type); + } + + public Bird() { + super(11); + this.name = "Loloska"; + this.height = 100; + this.weight = 10; + this.type = "parrot"; + System.out.println("Bird is: " + name + " has been created. Parameters: " + height + "cm, " + weight + "kg. Type - " + type); + } + + + @Override + public void move(int directionX, int directionY, int directionZ) { + System.out.println("I fly. Because I'm bird"); + } + + @Override + public void born(Date DayOfBirth) { + super.DayOfBirth = DayOfBirth; + System.out.println("I was born " + super.DayOfBirth.toString()); + } + + @Override + public void die(Date DayOfDie) { + super.DayOfDie = DayOfDie; + System.out.println("I was die " + super.DayOfDie.toString()); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Eagle.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Eagle.java new file mode 100644 index 0000000..f961cd4 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/birds/Eagle.java @@ -0,0 +1,14 @@ +package com.company.creature.stavovce.stavovcediely.birds; + +public class Eagle extends Bird{ + public Eagle(int pocet_stavcov) { + super(pocet_stavcov); + } + + public Eagle(String name, double height, double weight, String type, int pocet_stavcov) { + super(name, height, weight, type, pocet_stavcov); + } + + public Eagle() { + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Fish.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Fish.java new file mode 100644 index 0000000..a4fe872 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Fish.java @@ -0,0 +1,51 @@ +package com.company.creature.stavovce.stavovcediely.fish; + +import com.company.creature.stavovce.stavovcediely.Stavovec; + +import java.util.Date; + +public abstract class Fish extends Stavovec { + private String name; + private double height; + private double weight; + private String type; + + public Fish(int pocet_stavcov){ + super(pocet_stavcov); + } + + public Fish(String name, double height, double weight, String type, int pocet_stavcov) { + super(pocet_stavcov); + this.name = name; + this.height = height; + this.weight = weight; + this.type = type; + System.out.println("Fish is: " + name + " has been created. Parameters: " + height + "cm, " + weight + "kg. Type - " + type); + } + + public Fish() { + super(11); + this.name = "Svoupy"; + this.height = 15; + this.weight = 0.2; + this.type = "Golden fish"; + System.out.println("Bird is: " + name + " has been created. Parameters: " + height + "cm, " + weight + "kg. Type - " + type); + } + + @Override + public void move(int directionX, int directionY, int directionZ) { + System.out.println("I swim. Because I'm a fish"); + } + + @Override + public void born(Date DayOfBirth) { + super.DayOfBirth = DayOfBirth; + System.out.println("I was born " + super.DayOfBirth.toString()); + } + + @Override + public void die(Date DayOfDie) { + super.DayOfDie = DayOfDie; + System.out.println("I was die " + super.DayOfDie.toString()); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Kapor.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Kapor.java new file mode 100644 index 0000000..d54a3be --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Kapor.java @@ -0,0 +1,15 @@ +package com.company.creature.stavovce.stavovcediely.fish; + +public class Kapor extends Fish{ + + public Kapor(int pocet_stavcov) { + super(pocet_stavcov); + } + + public Kapor(String name, double height, double weight, String type, int pocet_stavcov) { + super(name, height, weight, type, pocet_stavcov); + } + + public Kapor() { + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Nemo.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Nemo.java new file mode 100644 index 0000000..543e7d9 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/fish/Nemo.java @@ -0,0 +1,14 @@ +package com.company.creature.stavovce.stavovcediely.fish; + +public class Nemo extends Fish{ + public Nemo(int pocet_stavcov) { + super(pocet_stavcov); + } + + public Nemo(String name, double height, double weight, String type, int pocet_stavcov) { + super(name, height, weight, type, pocet_stavcov); + } + + public Nemo() { + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/DychaciaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/DychaciaSustavaStavovec.java new file mode 100644 index 0000000..6d69109 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/DychaciaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class DychaciaSustavaStavovec extends Sustava{ + public DychaciaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/NervovaSustavaStavovec_Default.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/NervovaSustavaStavovec_Default.java new file mode 100644 index 0000000..8019dc9 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/NervovaSustavaStavovec_Default.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class NervovaSustavaStavovec_Default extends Sustava{ + public NervovaSustavaStavovec_Default(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/ObehovaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/ObehovaSustavaStavovec.java new file mode 100644 index 0000000..087fe10 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/ObehovaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class ObehovaSustavaStavovec extends Sustava{ + public ObehovaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/OpovovaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/OpovovaSustavaStavovec.java new file mode 100644 index 0000000..930a012 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/OpovovaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class OpovovaSustavaStavovec extends Sustava{ + public OpovovaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/PohybovaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/PohybovaSustavaStavovec.java new file mode 100644 index 0000000..eb44e95 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/PohybovaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class PohybovaSustavaStavovec extends Sustava{ + public PohybovaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/RozmnovaciaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/RozmnovaciaSustavaStavovec.java new file mode 100644 index 0000000..a985fe7 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/RozmnovaciaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class RozmnovaciaSustavaStavovec extends Sustava { + public RozmnovaciaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/Sustava.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/Sustava.java new file mode 100644 index 0000000..5880daa --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/Sustava.java @@ -0,0 +1,13 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public abstract class Sustava { + TypSustavy typSustavy; + + public Sustava(TypSustavy typSustavy) { + this.typSustavy = typSustavy; + } + + public void setTypSustavy(TypSustavy typSustavy) { + this.typSustavy = typSustavy; + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TraviacaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TraviacaSustavaStavovec.java new file mode 100644 index 0000000..647d791 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TraviacaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class TraviacaSustavaStavovec extends Sustava{ + public TraviacaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TypSustavy.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TypSustavy.java new file mode 100644 index 0000000..fa2d81b --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/TypSustavy.java @@ -0,0 +1,12 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public enum TypSustavy { + OPOROVA, + OBEHOVA, + VYLUCOVACIA, + POHYBOVA, + DUCHACIA, + TRAVIACA, + ROZMNOZOVACIA, + NEROVA +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/VylucovaciaSustavaStavovec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/VylucovaciaSustavaStavovec.java new file mode 100644 index 0000000..9ca15da --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/VylucovaciaSustavaStavovec.java @@ -0,0 +1,7 @@ +package com.company.creature.stavovce.stavovcediely.sustavy; + +public class VylucovaciaSustavaStavovec extends Sustava{ + public VylucovaciaSustavaStavovec(TypSustavy typSustavy) { + super(typSustavy); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/CNS.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/CNS.java new file mode 100644 index 0000000..5b2c55e --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/CNS.java @@ -0,0 +1,11 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class CNS { + private Mozog mozog; + private Miecha miecha; + + public CNS() { + mozog = new Mozog(); + miecha = new Miecha(); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Miecha.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Miecha.java new file mode 100644 index 0000000..10365f1 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Miecha.java @@ -0,0 +1,9 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class Miecha { + private Neuron[] NeuronovaSiet; + + public Miecha() { + this.NeuronovaSiet = new Neuron[500]; + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Mozog.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Mozog.java new file mode 100644 index 0000000..77d8b34 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Mozog.java @@ -0,0 +1,9 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class Mozog { + private Neuron[] NeuronovaSiet; + + public Mozog(){ + this.NeuronovaSiet = new Neuron[500]; + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Nerv.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Nerv.java new file mode 100644 index 0000000..ff06245 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Nerv.java @@ -0,0 +1,4 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class Nerv { +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/NervovaSustavaCicavec.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/NervovaSustavaCicavec.java new file mode 100644 index 0000000..e991f76 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/NervovaSustavaCicavec.java @@ -0,0 +1,16 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +import com.company.creature.stavovce.stavovcediely.sustavy.NervovaSustavaStavovec_Default; +import com.company.creature.stavovce.stavovcediely.sustavy.TypSustavy; + +public class NervovaSustavaCicavec extends NervovaSustavaStavovec_Default { + + private CNS cns; + private PNS pns; + + public NervovaSustavaCicavec(TypSustavy typSustavy) { + super(typSustavy); + cns = new CNS(); + pns = new PNS(); + } +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Neuron.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Neuron.java new file mode 100644 index 0000000..170949b --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/Neuron.java @@ -0,0 +1,4 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class Neuron { +} diff --git a/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/PNS.java b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/PNS.java new file mode 100644 index 0000000..0665080 --- /dev/null +++ b/MyFirstUniverseV2/src/com/company/creature/stavovce/stavovcediely/sustavy/nervova/PNS.java @@ -0,0 +1,9 @@ +package com.company.creature.stavovce.stavovcediely.sustavy.nervova; + +public class PNS { + private Nerv[] nervy; + + public PNS(){ + nervy = new Nerv[100]; + } +}