-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Action system seems more or less complete; starting on power-ups and …
…characters
- Loading branch information
1 parent
86d0aa7
commit be6972d
Showing
78 changed files
with
1,111 additions
and
235 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
api/src/main/java/com/fqf/mario_qua_mario/definitions/StatAlteringStateDefinition.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
api/src/main/java/com/fqf/mario_qua_mario/definitions/StompTypeDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.fqf.mario_qua_mario.definitions; | ||
|
||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface StompTypeDefinition { | ||
@NotNull Identifier getID(); | ||
} |
8 changes: 0 additions & 8 deletions
8
api/src/main/java/com/fqf/mario_qua_mario/definitions/actions/util/SneakingRule.java
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
api/src/main/java/com/fqf/mario_qua_mario/definitions/actions/util/SprintingRule.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ns/AttackInterceptingStateDefinition.java → ...es/AttackInterceptingStateDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
api/src/main/java/com/fqf/mario_qua_mario/definitions/states/CharacterDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.fqf.mario_qua_mario.definitions.states; | ||
|
||
import net.minecraft.util.Identifier; | ||
|
||
public interface CharacterDefinition extends StatAlteringStateDefinition { | ||
Identifier getInitialAction(); | ||
Identifier getInitialPowerUp(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...rio/definitions/MarioStateDefinition.java → ...initions/states/MarioStateDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
api/src/main/java/com/fqf/mario_qua_mario/definitions/states/PowerUpDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.fqf.mario_qua_mario.definitions.states; | ||
|
||
import net.minecraft.sound.SoundEvent; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface PowerUpDefinition extends StatAlteringStateDefinition, AttackInterceptingStateDefinition { | ||
@Nullable Identifier getReversionTarget(); | ||
int getValue(); | ||
|
||
@Nullable SoundEvent getAcquisitionSound(); | ||
float getVoicePitch(); | ||
|
||
@NotNull PowerHeart getPowerHeart(PowerHeartHelper helper); | ||
|
||
interface PowerHeartHelper { | ||
PowerHeart auto(); | ||
|
||
PowerHeart standard(String namespace, String folder); | ||
|
||
PowerHeart fromRoot(Identifier root); | ||
} | ||
|
||
record PowerHeart( | ||
Identifier fullTexture, Identifier fullBlinkingTexture, | ||
Identifier halfTexture, Identifier halfBlinkingTexture, | ||
Identifier hardcoreFullTexture, Identifier hardcoreFullBlinkingTexture, | ||
Identifier hardcoreHalfTexture, Identifier hardcoreHalfBlinkingTexture, | ||
Identifier containerTexture, Identifier containerBlinkingTexture | ||
) { | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...src/main/java/com/fqf/mario_qua_mario/definitions/states/StatAlteringStateDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.fqf.mario_qua_mario.definitions.states; | ||
|
||
import com.fqf.mario_qua_mario.util.StatCategory; | ||
|
||
import java.util.Set; | ||
|
||
public interface StatAlteringStateDefinition extends MarioStateDefinition { | ||
float getWidthFactor(); | ||
float getHeightFactor(); | ||
|
||
int getBumpStrengthModifier(); | ||
|
||
Set<String> getPowers(); | ||
|
||
Set<StatModifier> getStatModifiers(); | ||
|
||
record StatModifier( | ||
Set<StatCategory> match, | ||
StatOperation operation | ||
) { | ||
public StatModifier(Set<StatCategory> match, double factor) { | ||
this(match, (base, categories) -> base * factor); | ||
} | ||
|
||
@FunctionalInterface public interface StatOperation { | ||
double modify(double base, Set<StatCategory> categories); | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...ons/actions/AirborneActionDefinition.java → ...tes/actions/AirborneActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ions/actions/AquaticActionDefinition.java → ...ates/actions/AquaticActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ions/actions/GenericActionDefinition.java → ...ates/actions/GenericActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ons/actions/GroundedActionDefinition.java → ...tes/actions/GroundedActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ns/actions/WallboundActionDefinition.java → ...es/actions/WallboundActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...io/definitions/actions/util/BumpType.java → ...nitions/states/actions/util/BumpType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ions/actions/util/CameraAnimationSet.java → ...ates/actions/util/CameraAnimationSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ns/actions/util/EvaluatorEnvironment.java → ...es/actions/util/EvaluatorEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ions/util/IncompleteActionDefinition.java → ...ions/util/IncompleteActionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...finitions/actions/util/SlidingStatus.java → ...ns/states/actions/util/SlidingStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
api/src/main/java/com/fqf/mario_qua_mario/definitions/states/actions/util/SneakingRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.fqf.mario_qua_mario.definitions.states.actions.util; | ||
|
||
public enum SneakingRule { | ||
ALLOW, | ||
PROHIBIT, | ||
SLIP, | ||
FORCE | ||
} |
6 changes: 6 additions & 0 deletions
6
api/src/main/java/com/fqf/mario_qua_mario/definitions/states/actions/util/SprintingRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.fqf.mario_qua_mario.definitions.states.actions.util; | ||
|
||
public enum SprintingRule { | ||
ALLOW, | ||
PROHIBIT | ||
} |
2 changes: 1 addition & 1 deletion
2
...ns/actions/util/TransitionDefinition.java → ...es/actions/util/TransitionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/util/TransitionInjectionDefinition.java → ...s/util/TransitionInjectionDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+174 Bytes
...ssets/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 Bytes
...io_qua_mario/textures/gui/sprites/hud/power_hearts/small/container_blinking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+168 Bytes
...ces/assets/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+168 Bytes
...s/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/full_blinking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 Bytes
...ces/assets/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/half.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 Bytes
...s/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/half_blinking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+175 Bytes
...s/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/hardcore/full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+185 Bytes
...ua_mario/textures/gui/sprites/hud/power_hearts/small/hardcore/full_blinking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+162 Bytes
...s/mario_qua_mario/textures/gui/sprites/hud/power_hearts/small/hardcore/half.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+162 Bytes
...ua_mario/textures/gui/sprites/hud/power_hearts/small/hardcore/half_blinking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
content/src/main/java/com/fqf/mario_qua_mario/actions/grounded/SubWalk.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
content/src/main/java/com/fqf/mario_qua_mario/characters/Mario.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.fqf.mario_qua_mario.characters; | ||
|
||
import com.fqf.mario_qua_mario.MarioQuaMarioContent; | ||
import com.fqf.mario_qua_mario.definitions.states.CharacterDefinition; | ||
import com.fqf.mario_qua_mario.mariodata.IMarioAuthoritativeData; | ||
import com.fqf.mario_qua_mario.mariodata.IMarioClientData; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Set; | ||
|
||
public class Mario implements CharacterDefinition { | ||
@Override public @NotNull Identifier getID() { | ||
return MarioQuaMarioContent.makeID("mario"); | ||
} | ||
|
||
@Override public Identifier getInitialAction() { | ||
return MarioQuaMarioContent.makeID("debug"); | ||
} | ||
@Override public Identifier getInitialPowerUp() { | ||
return MarioQuaMarioContent.makeID("small"); | ||
} | ||
|
||
@Override public float getWidthFactor() { | ||
return 1; | ||
} | ||
@Override public float getHeightFactor() { | ||
return 1; | ||
} | ||
|
||
@Override public int getBumpStrengthModifier() { | ||
return 0; | ||
} | ||
|
||
@Override public Set<String> getPowers() { | ||
return Set.of(); | ||
} | ||
|
||
@Override public Set<StatModifier> getStatModifiers() { | ||
return Set.of(); | ||
} | ||
|
||
@Override public void clientTick(IMarioClientData data, boolean isSelf) { | ||
|
||
} | ||
|
||
@Override public void serverTick(IMarioAuthoritativeData data) { | ||
|
||
} | ||
} |
Oops, something went wrong.