Collin Smith
da9acd5977
Created StatListFlags to store stat list flags (copied from Item)
2020-09-02 18:55:35 -07:00
Collin Smith
ca829a4025
Created StatListWriter and tests
...
Additional testing required, but workable code
2020-09-02 18:20:30 -07:00
Collin Smith
e6f4a8b222
Changed to skip bits only (bytes included)
2020-09-02 18:19:22 -07:00
Collin Smith
4ed61438db
Added bit mask for Long#Size
...
Reverted previous change
writeRaw performs logical-and with bit mask to ensure cache correctness
2020-09-02 18:18:26 -07:00
Collin Smith
63e3cc0e8b
Fixed issue where flush would write more bits than cached
2020-09-02 18:03:15 -07:00
Collin Smith
4ccce1dabf
StatListGetter now implements iterator to iterate over stat list
2020-09-02 17:30:48 -07:00
Collin Smith
c3693a8761
Added put method in StatList to put a stat with all fields filled
2020-09-02 17:30:01 -07:00
Collin Smith
9bcf4e2693
Added util for encoding stat params and values
2020-09-02 17:29:23 -07:00
Collin Smith
1932c0fcd2
Added getter for StatGetter stat entry
2020-09-02 17:28:00 -07:00
Collin Smith
4397ee742a
Removed extra test case
2020-09-02 17:09:28 -07:00
Collin Smith
0daa272752
Fixed formatting
2020-09-02 17:08:35 -07:00
Collin Smith
8cbcb814d1
inlined NUM_GEMPROPS so Item can remain unchanged for the time being
2020-09-02 16:27:55 -07:00
Collin Smith
d4102d7fa7
Removed specific stat value getters (should use #get(short) instead)
2020-09-02 16:25:55 -07:00
Collin Smith
1872c3e00c
Documented parent methods
2020-09-02 16:25:02 -07:00
Collin Smith
a5b90dc868
Added test case for decoding grief stat list
2020-09-02 16:20:34 -07:00
Collin Smith
1a6a522d37
Additional logging
2020-09-02 16:20:11 -07:00
Collin Smith
ca170f7cfb
Added documentation regarding method intended use-case
2020-09-02 16:19:58 -07:00
Collin Smith
251a691bd5
Added support for retrieving first entry of a stat regardless of params
2020-09-02 16:18:59 -07:00
Collin Smith
03503a8f79
Added basic check for if stat required params
2020-09-02 16:13:14 -07:00
Collin Smith
294d69ddc9
Removed unused params
2020-09-02 16:04:57 -07:00
Collin Smith
0338325b26
Improved logging
2020-09-02 02:22:32 -07:00
Collin Smith
a9cdd18309
Created StatListReader
2020-09-02 02:16:40 -07:00
Collin Smith
74055272dc
Created StatList#maxLists getter
2020-09-02 02:16:01 -07:00
Collin Smith
daf2314bac
Changed return type of StatList#clear to support chaining
2020-09-02 02:15:38 -07:00
Collin Smith
4cc595da29
Renamed static factory method to match return type
2020-09-02 01:41:03 -07:00
Collin Smith
28a219d5cd
Added support within StatListBuilder to retrieve previously put stat
2020-09-02 01:29:24 -07:00
Collin Smith
294bb1ea61
Moved stat entry query methods to Stat
2020-09-02 00:47:54 -07:00
Collin Smith
fc01a7dea9
First iteration of attributes revision
2020-09-01 23:47:16 -07:00
Collin Smith
b1ddb912fe
Added tracef variant of traceEntry
2020-08-30 19:09:36 -07:00
Collin Smith
8fb6bb5fa5
Added support for assigning float to stat
...
Created Stat#encodeFloat(float,int) to encode floats into fixed point int
Added maxhp stat to monster attributes
Changed debugging to output float stat
2020-08-30 15:51:44 -07:00
Collin Smith
b4a77e02a2
Added debugging for attack action
2020-08-30 02:37:13 -07:00
Collin Smith
2557ba2458
Created AttributesWrapper component to wrap an entities attributes
...
Player attributes (already existing) are assigned to the wrapper
Monster attributes are created in-engine and assigned to the wrapper
Added basic code to set a monster's health attribute
2020-08-30 02:36:36 -07:00
Collin Smith
d3c06188a7
Combined stand still and right click casting into one block
...
Combined stand still and right click casting into one block
Moved vars into final fields to improve readability
Implemented getHovered(int) to get targetId (if any)
2020-08-29 02:08:19 -07:00
Collin Smith
45825b8a3d
Removed hovered target id code into getHovered(int)
2020-08-29 02:06:52 -07:00
Collin Smith
d7c4d478a8
Implemented target entity id and Vector2 into casting events
2020-08-29 01:47:08 -07:00
Collin Smith
51de82df58
Removed unnecessary code
...
Can only load from existing preference keys
2020-08-28 22:45:24 -07:00
Collin Smith
872f2e732e
Loading now loads existing contexts as well
...
Loading now loads contexts created before manager created
Added additional trace logging
2020-08-28 21:33:25 -07:00
Collin Smith
6012bee436
Use local logs instead of Riiablo.logs
2020-08-28 21:25:34 -07:00
Collin Smith
9af239eab9
Created GdxLoggerManager to manage logger contexts
...
Decorates a LoggerRegistry
Handles loading and saving of logger contexts
Created commands for getting contexts, loggers, and changing contexts
2020-08-28 21:25:00 -07:00
Collin Smith
533db1ff50
Added accessors to contexts and loggers via an unmodifiable trie
2020-08-28 21:20:16 -07:00
Collin Smith
090edf78e2
Changed trace logging to traceEntry and improved message formats
2020-08-28 04:41:48 -07:00
Collin Smith
16cf4a9572
Defined AbstractLogger#traceEntry() and #traceEntry(String,Object...)
2020-08-28 04:28:23 -07:00
Collin Smith
055c2173e4
Added check because Reflections api doesn't work on android (see todo)
2020-08-28 01:19:18 -07:00
Collin Smith
05be705363
Added temporary check to prevent attacking interactable entities
2020-08-28 00:44:01 -07:00
Collin Smith
c12ea88b6e
Added Reflections library to LoggerSuggester
2020-08-28 00:16:26 -07:00
Collin Smith
8f2037a874
Configured default log level for root logger correctly
2020-08-28 00:14:59 -07:00
Collin Smith
685349fe01
Replaced Log4j2 with com.riiablo.logger (see #105 )
...
Log4j2 removed as a dependency
2020-08-27 23:21:24 -07:00
Collin Smith
216b1ed6df
Removed constraint on appender being null
2020-08-27 23:12:35 -07:00
Collin Smith
2c2f9f9109
Created static valueOf overload to return default value if one doesn't exist
2020-08-27 23:11:52 -07:00
Collin Smith
4db52a5e39
Renamed INSTANCE to DEFAULT_REGISTRY
2020-08-27 22:57:49 -07:00