mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 18:23:44 +01:00
Lets GO
This commit is contained in:
parent
07fd92c9b2
commit
f317d7723e
@ -288,13 +288,13 @@ public class LobbyMenu extends Dialog {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
switch (selected) {
|
||||
case "[0]":
|
||||
figure = "Laptop";
|
||||
figure = "Computer";
|
||||
break;
|
||||
case "[1]":
|
||||
figure = "Flugzeug";
|
||||
break;
|
||||
case "[2]":
|
||||
figure = "Jägermeister";
|
||||
figure = "Jaegermeister";
|
||||
break;
|
||||
case "[3]":
|
||||
figure = "Katze";
|
||||
@ -303,7 +303,7 @@ public class LobbyMenu extends Dialog {
|
||||
figure = "OOP";
|
||||
break;
|
||||
case "[5]":
|
||||
figure = "Handyholster";
|
||||
figure = "Holster";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -139,14 +139,14 @@ public class TestWorld implements GameEventListener {
|
||||
try {
|
||||
// Lade das Modell
|
||||
com.jme3.scene.Spatial model = app.getAssetManager().loadModel(
|
||||
"models/" + player.getFigure().getType() + "/" + player.getFigure().getType() + ".j3o");
|
||||
"models/" + "Spielfiguren/" + player.getFigure().getType() + "/" + player.getFigure().getType() + ".j3o");
|
||||
|
||||
// Setze das Material mit silberner Farbe
|
||||
Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md");
|
||||
mat.setColor("Diffuse", new com.jme3.math.ColorRGBA(0.45f, 0.45f, 0.45f, 1.0f)); // Silberne Farbe
|
||||
mat.setColor("Specular", new com.jme3.math.ColorRGBA(0.6f, 0.6f, 0.6f, 1.0f)); // Glanzlicht
|
||||
mat.setFloat("Shininess", 64f); // Höhere Werte machen das Material glänzender
|
||||
model.setMaterial(mat);
|
||||
//mat.setColor("Diffuse", new com.jme3.math.ColorRGBA(0.45f, 0.45f, 0.45f, 1.0f)); // Silberne Farbe
|
||||
//mat.setColor("Specular", new com.jme3.math.ColorRGBA(0.6f, 0.6f, 0.6f, 1.0f)); // Glanzlicht
|
||||
//mat.setFloat("Shininess", 64f); // Höhere Werte machen das Material glänzender
|
||||
//model.setMaterial(mat);
|
||||
|
||||
// Skaliere und positioniere das Modell
|
||||
model.setLocalScale(0.5f);
|
||||
@ -489,8 +489,7 @@ public class TestWorld implements GameEventListener {
|
||||
com.jme3.scene.Spatial buildingModel = app.getAssetManager().loadModel(modelPath);
|
||||
|
||||
Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md");
|
||||
Texture texture = app.getAssetManager().loadTexture("models/Haus/" + "Haus.png");
|
||||
mat.setTexture("DiffuseMap", texture);
|
||||
|
||||
buildingModel.setMaterial(mat);
|
||||
|
||||
buildingModel.setLocalScale(0.5f);
|
||||
|
@ -10,7 +10,7 @@ import pp.monopoly.game.server.Player;
|
||||
@Serializable
|
||||
public class BuildingProperty extends PropertyField {
|
||||
|
||||
private int houses = 2;
|
||||
private int houses;
|
||||
private final int housePrice;
|
||||
private final FieldColor color;
|
||||
private final int rentFactor1 = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user