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

services final

parent a9d20c3d
No related branches found
No related tags found
No related merge requests found
......@@ -14,43 +14,69 @@ import lombok.*;
@NoArgsConstructor(access = AccessLevel.PUBLIC)
public class PlanetEventService {
/** Type of planet event currently happening */
/**
* Type of planet event currently happening
*/
@NonNull
private Enum<PlanetEvent> currentEvent;
/** Ship DAO */
/**
* Ship DAO
*/
@NonNull
private ShipDAO shipDAO;
/** RewardService */
/**
* RewardService
*/
private RewardService rewardService;
/** Round counter (meteorShower/Nebula) */
/**
* Round counter (meteorShower/Nebula)
*/
private int roundCounter = 0;
/** Give the player some coins
* @param s - the ship to give coins to
* @param amount - amount of coins to add */
public void giveCoins(Ship s,int amount){}
/**
* Give the player some coins
*
* @param s - the ship to give coins to
* @param amount - amount of coins to add
*/
public void giveCoins(Ship s, int amount) {
}
/** Take coins away from player
* @param s - the ship to remove coins from
* @param amount - the amount of coins to remove */
public void removeCoins(Ship s,int amount){}
/**
* Take coins away from player
*
* @param s - the ship to remove coins from
* @param amount - the amount of coins to remove
*/
public void removeCoins(Ship s, int amount) {
}
/** Give the player some loot
* @param s - the ship to give the reward to
* @param dropTable - list of possible drops
* @param crewDropTable - list of possible crew drops */
public void giveLoot(Ship s, List<Weapon> dropTable, List<Crew> crewDropTable){}
/**
* Give the player some loot
*
* @param s - the ship to give the reward to
* @param dropTable - list of possible drops
* @param crewDropTable - list of possible crew drops
*/
public void giveLoot(Ship s, List<Weapon> dropTable, List<Crew> crewDropTable) {
}
/** MeteorShower damage
* @param s - the player in the meteorShower */
private void meteorShower(Ship s){}
/**
* MeteorShower damage
*
* @param s - the player in the meteorShower
*/
private void meteorShower(Ship s) {
}
/** Disable systems when in nebula
* @param s - the ship which's systems to disable */
public void disableSystemsInNebula(Ship s, int duration){}
/** Start battle */
/**
* Disable systems when in nebula
*
* @param s - the ship which's systems to disable
*/
public void disableSystemsInNebula(Ship s, int duration) {
}
}
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