Skip to content
Snippets Groups Projects
Commit b6ed9a81 authored by Leonard's avatar Leonard
Browse files

Merge branch 'Modulsicht'

parents a3f7ff97 f480a7d8
No related branches found
No related tags found
No related merge requests found
Showing
with 119 additions and 10 deletions
No preview for this file type
File added
File added
File added
File added
GT_Modulsicht/Gt Model.png

466 KiB | W: | H:

GT_Modulsicht/Gt Model.png

466 KiB | W: | H:

GT_Modulsicht/Gt Model.png
GT_Modulsicht/Gt Model.png
GT_Modulsicht/Gt Model.png
GT_Modulsicht/Gt Model.png
  • 2-up
  • Swipe
  • Onion skin
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
public class Attack {
}
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
public class Move {
}
package com.galaxytrucker.galaxytruckerreloaded.Model.Map;
import java.util.HashMap;
public class Overworld {
private HashMap<float[],Planet> planetMap;
public Overworld(int seed) {
planetMap = new HashMap<>();
}
}
package com.galaxytrucker.galaxytruckerreloaded.Model.Planet;
package com.galaxytrucker.galaxytruckerreloaded.Model.Map;
import com.j256.ormlite.field.DatabaseField;
import lombok.*;
......
package com.galaxytrucker.galaxytruckerreloaded.Model.Planet;
package com.galaxytrucker.galaxytruckerreloaded.Model.Map;
public enum PlanetEvent {
......
package com.galaxytrucker.galaxytruckerreloaded.Model;
import com.galaxytrucker.galaxytruckerreloaded.Model.Map.Planet;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import lombok.*;
......@@ -26,15 +27,50 @@ public class Ship implements Serializable {
*/
@NonNull
@DatabaseField(columnName = "HP")
private int hp;
/**
* Resources are stored in ship
*/
private int money;
private int missiles;
private int fuel;
/**
* Shields
* Energy to be distributed
*/
private int energy;
/**
* Shields that are currently active
*/
private int shieldCharge;
/**
* Total number of Shields that are powered. Possibly redundant through Shield.getEnergy/2
*/
private int maxShieldCharge;
/**
* chance for the ship to dodge incoming attacks
*/
private float evasion;
/**
* X and Y coordinates on the map
*/
private Planet position;
/**
* time needed until position can be changed again
*/
@NonNull
@DatabaseField(columnName = "SHIELDS")
private int shields;
private int FTLcharge;
/**
* Take damage
*/
......
package com.galaxytrucker.galaxytruckerreloaded.Model.ShipLayout;
import com.j256.ormlite.field.DatabaseField;
import lombok.*;
......
package com.galaxytrucker.galaxytruckerreloaded.Model.Weapons;
import com.galaxytrucker.galaxytruckerreloaded.Model.Ship;
public abstract class Weapon {
/** Weapon damage */
private int damage;
/** Weapon coolDown */
/** Amount of rounds for the weapon to be used again */
private int cooldown;
/** Weapon energy */
private int energy;
/** Amount of missiles spent per attack */
private int missileCost;
private float dropchance;
private int crewdamage;
/**
* How many projectiles are fired per burst
*/
private int burst;
private float precision;
/** probability of randomly finding this weapon */
private float dropChance;
/** Amount of shield bars this Weapon can ignore */
private int shieldPiercing;
/** Probability of causing a breach in the section on hit */
private float breachChance;
/** Damage taken by crew in the hit section */
private int crewDamage;
/** How many projectiles are fired per burst */
private int burst;
public int getCooldown() {
return cooldown;
}
public void setCooldown(int cooldown) {
this.cooldown = cooldown;
}
public int getEnergy() {
return energy;
}
public void setEnergy(int energy) {
this.energy = energy;
}
public float getDropChance() {
return dropChance;
}
public void setDropChance(float dropChance) {
this.dropChance = dropChance;
}
public void attack(Ship target){}
}
......@@ -1201,6 +1201,16 @@ in die Details von spezifischen Technologien abzugleiten. Sie wird in den
nachfolgenden Sichten konkretisiert und verfeinert. Die konzeptionelle Sicht
wird mit {UML}-Komponentendiagrammen visualisiert.}
\newpage
\begin{figure}[H]
\begin{center}
\includegraphics[width=340px]{UML/KonzeptioneleSicht.pdf}
\caption{Die konzeptionelle Sicht}
\label{fig:boat1}
\end{center}
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Modulsicht} \label{sec:modulsicht}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment