Skip to content
Snippets Groups Projects
Commit 17b9069d authored by Karl Aaron Rudkowski's avatar Karl Aaron Rudkowski
Browse files

buttons integrated so that they can do stuff

parent 7490b80d
No related branches found
No related tags found
No related merge requests found
Showing with 104 additions and 8 deletions
......@@ -97,7 +97,31 @@ public class ShipSelector implements Screen {
}
/** Constructor
/**
* to set the difficulty. called by button
* @param difficulty the difficulty
*/
public void setDifficulty(int difficulty) {
}
/**
* the ship is selected
* @param ship the index of the ship in the list of possible ships
*/
public void setShip(int ship) {
}
/**
* sets whether or not singleplayer. called by button
* @param single singleplayer = true
*/
public void setSinglePlayer(boolean single) {
}
/** Constructor TODO wie werden die schiffe dargestellt
* @param main - main class */
public ShipSelector(Main main){}
}
......@@ -82,6 +82,8 @@ public class EventGUI {
* Switch event page
* if there is no next page hide the event gui
* possibly open Shop ui, if the event is a shop, or start fight
*
* called by button
*/
private void nextPage() {
}
......
......@@ -67,6 +67,16 @@ public class ShopUI {
public void disposeShopUI() {
}
/**
* an item is bought
* called by button
* @param item the item (index in the list)
*/
public void buy(int item) {
}
/**
* constructor
* @param main the main class
......
......@@ -5,6 +5,9 @@ import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.galaxytrucker.galaxytruckerreloaded.Main;
import com.galaxytrucker.galaxytruckerreloaded.Model.Crew.Crew;
/**
* to represent a crew member in the inventory
*/
public class InventoryCrewSlotUI extends InventorySlotUI {
/**
......
package com.galaxytrucker.galaxytruckerreloaded.View.UI.Ship;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.galaxytrucker.galaxytruckerreloaded.Main;
import com.galaxytrucker.galaxytruckerreloaded.Model.Ship;
import com.galaxytrucker.galaxytruckerreloaded.View.Buttons.InGameButtons.AutofireButton;
import com.galaxytrucker.galaxytruckerreloaded.View.Buttons.InGameButtons.MoveButton;
import com.galaxytrucker.galaxytruckerreloaded.View.Buttons.InGameButtons.ShipButton;
import com.galaxytrucker.galaxytruckerreloaded.View.UI.Inventory.InventoryUI;
import com.galaxytrucker.galaxytruckerreloaded.View.UI.ShipInformation.*;
public class ShipView extends AbstractShip {
......@@ -46,14 +43,15 @@ public class ShipView extends AbstractShip {
private MoveButton moveButton;
/**
* the background texture of the ship
* the weapon autofire button
*/
private Texture shipBackground;
private AutofireButton weaponAutofire;
/**
* the weapon autofire button
* the background texture of the ship
*/
private AutofireButton weaponAutofire;
private Texture shipBackground;
/**
* the general background for the weapon display in the bottom left corner next to the energy status display
......@@ -109,6 +107,30 @@ public class ShipView extends AbstractShip {
}
/**
* open the inventory of this ship
* called by ship button
*/
public void openInventory() {
}
/**
* open the map
* called by move button
*/
public void openMap() {
}
/**
* autofire
* called by autofire button
*/
public void autofire() {
}
/**
* Ship hop animation
*/
......
......@@ -66,6 +66,15 @@ public class CrewUI {
}
/**
* the crew was chosen to be moved
* called by button crewdismiss
* not waiting for the user to choose a room on the ship
*/
public void crewMoving() {
}
/**
* the crew member died
*/
......
......@@ -105,6 +105,23 @@ public class SubsystemUI {
}
/**
* activates the energy supply for this system
* called by systembutton
* if energy supply already activated and not at maximum, then more energy to this system
*/
public void activateEnergy() {
}
/**
* the energy supply for this system is lowered, unless there is no supply
* called by systembutton
*/
public void lessEnergy() {
}
/**
* constructor
* @param main the main class
......
......@@ -54,6 +54,15 @@ public class WeaponUI {
}
/**
* the weapon is activated. now, a room needs to be selected
* if weapon is active, it is deactivated
* called by weaponactivatebutton
*/
public void weaponactivated() {
}
/**
* constructor
* @param main the main class
......
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