Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GalaxyTrucker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leonard Haddad
GalaxyTrucker
Commits
bf53cb3e
Commit
bf53cb3e
authored
4 years ago
by
Leonard
Browse files
Options
Downloads
Patches
Plain Diff
services final
parent
a9d20c3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/com/galaxytrucker/galaxytruckerreloaded/Server/Services/PlanetEventService.java
+51
-25
51 additions, 25 deletions
...xytruckerreloaded/Server/Services/PlanetEventService.java
with
51 additions
and
25 deletions
core/src/com/galaxytrucker/galaxytruckerreloaded/Server/Services/PlanetEventService.java
+
51
−
25
View file @
bf53cb3e
...
...
@@ -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
)
{
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment