Skip to content
Snippets Groups Projects
Commit af3bde94 authored by Fabian's avatar Fabian
Browse files

Controller update, Trader, Crew, Travel

parent 27ab5dc9
No related branches found
No related tags found
No related merge requests found
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
import com.galaxytrucker.galaxytruckerreloaded.Model.Crew.Crew;
import com.galaxytrucker.galaxytruckerreloaded.Model.Ship;
import com.galaxytrucker.galaxytruckerreloaded.Model.ShipLayout.Room;
import com.galaxytrucker.galaxytruckerreloaded.Model.ShipLayout.System;
import lombok.*;
@Getter
@Setter
@RequiredArgsConstructor(access = AccessLevel.PUBLIC)
public class CrewController extends Controller{
@NonNull
private Ship myself;
/** Move a crew member to a different section
* @param crew - the crew member
* @param room - the room to move him to */
public void moveCrewToRoom(Crew crew, Room room){
}
/** Heal crew
* @param crew - the crew member to heal
* @param healAmount - amount to heal */
public void healCrewMember(Crew crew,int healAmount){
}
/** Heal crew in a room
* @param room - the room which's crew members to heal
* @param amount - amount to heal */
public void healCrewInRoom(Room room,int amount){
}
/** Damage crew
* @param room - the room in which to damage the crew
* @param amount - the amount of damage to take */
public void damageCrew(Room room,int amount){
}
/** Fix a system
* @param system - the system to fix */
public void fixSystem(System system){
}
/** Repair a breach in a room
* @param room - the room to fix the breach in */
public void repairBreach(Room room){
}
}
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
public class Move {
}
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
import com.galaxytrucker.galaxytruckerreloaded.Model.Crew.Crew;
import com.galaxytrucker.galaxytruckerreloaded.Model.Map.Trader;
import com.galaxytrucker.galaxytruckerreloaded.Model.Ship;
import com.galaxytrucker.galaxytruckerreloaded.Model.Weapons.Weapon;
import lombok.*;
@Getter
@Setter
@RequiredArgsConstructor(access = AccessLevel.PUBLIC)
public class TraderController extends Controller{
/** My own ship */
@NonNull
private Ship myself;
/** the trader */
@NonNull
private Trader trader;
/**
* Buy a weapon from the trader
* @param weapon - the weapon to buy
*/
private void purchaseWeapon(Weapon weapon) {
}
/**
* Buy crew from a trader
* @param crew - the crew to buy
*/
public void purchaseCrew(Crew crew) {
}
/**
* Buy rockets from the trader
* @param amount - the amount of rockets to buy
*/
public void purchaseRockets(int amount) {
}
/**
* Buy fuel from the trader
* @param amount - the amount of fuel to buy
*/
public void purchaseFuel( int amount) {
}
/**
* Buy health from the trader
* @param amount - the amount to buy
*/
public void purchaseHP(int amount) {
}
}
package com.galaxytrucker.galaxytruckerreloaded.Controller.Actions;
import com.galaxytrucker.galaxytruckerreloaded.Model.Map.Planet;
import com.galaxytrucker.galaxytruckerreloaded.Model.Ship;
import lombok.*;
@Getter
@Setter
@RequiredArgsConstructor(access = AccessLevel.PUBLIC)
public class TravelController extends Controller{
/**
* My own ship
*/
@NonNull
private Ship myself;
/**
* travels from one location to another
* @param destination - the destination
*/
public void travel(Planet destination){
}
}
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