-
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.
Implemented extensible, category-based Stats system
- Loading branch information
1 parent
fc0392f
commit ed5ae50
Showing
24 changed files
with
394 additions
and
289 deletions.
There are no files selected for viewing
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
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
7 changes: 4 additions & 3 deletions
7
src/main/java/com/floralquafloral/registries/states/MarioMajorStateDefinition.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
13 changes: 9 additions & 4 deletions
13
src/main/java/com/floralquafloral/registries/states/ParsedMajorMarioState.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 |
---|---|---|
@@ -1,20 +1,25 @@ | ||
package com.floralquafloral.registries.states; | ||
|
||
import com.floralquafloral.stats.BaseStats; | ||
import com.floralquafloral.stats.StatCategory; | ||
|
||
import java.util.EnumMap; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
public abstract class ParsedMajorMarioState extends ParsedMarioState { | ||
public final float WIDTH_FACTOR; | ||
public final float HEIGHT_FACTOR; | ||
public final EnumMap<BaseStats, Double> STAT_FACTORS; | ||
public final Map<Set<StatCategory>, Double> STAT_MODIFIERS; | ||
|
||
protected ParsedMajorMarioState(MarioMajorStateDefinition definition) { | ||
super(definition); | ||
|
||
this.WIDTH_FACTOR = definition.getWidthFactor(); | ||
this.HEIGHT_FACTOR = definition.getHeightFactor(); | ||
this.STAT_FACTORS = new EnumMap<>(BaseStats.class); | ||
definition.populateStatFactors(this.STAT_FACTORS); | ||
this.STAT_MODIFIERS = new HashMap<>(); | ||
definition.populateStatModifiers(this.STAT_MODIFIERS); | ||
// this.STAT_FACTORS = new EnumMap<>(BaseStats.class); | ||
// definition.populateStatFactors(this.STAT_FACTORS); | ||
} | ||
} |
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
Oops, something went wrong.