Commit Graph

1034 Commits

Author SHA1 Message Date
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
Collin Smith
05d4c935c5 Added accessor for default registry 2020-08-27 22:57:13 -07:00
Collin Smith
14f78e0ca3 Added support for automatically flushing MDC after each entry
Riiablo's console was not written to handle multiline -- this seems easier
2020-08-27 22:45:36 -07:00
Collin Smith
ba78d5d487 MDC different prints up one level only if depths not equal 2020-08-27 21:37:52 -07:00
Collin Smith
f28e9b9f3f Implemented MDC difference checking to reduce printing as many non-dirty entries 2020-08-27 21:23:23 -07:00
Collin Smith
a10f124803 Immutable copy only cleared if a mutation takes place 2020-08-27 04:52:14 -07:00
Collin Smith
3939aee4c3 Introduced concept of dirty depth
`dirty depth` used to track earliest tree divergence for children
2020-08-27 04:40:08 -07:00
Collin Smith
42d0b7ab4e Cleaned up logic slightly to improve readability 2020-08-27 04:34:09 -07:00
Collin Smith
9f8bd1d612 Added invariants that StringMap#put key and value must be non-null 2020-08-27 04:33:17 -07:00
Collin Smith
28bb1c2ae5 Filled remaining methods and reduced visibility of INSTANCE to private 2020-08-27 04:30:40 -07:00
Collin Smith
7f79bbbc9a Refactored LogManager instance methods into LoggerRegistry
LogManager was having method name conflicts
LogManager delegates static methods to a LoggerRegistry instance
2020-08-27 04:28:04 -07:00
Collin Smith
c4839f5e7e Simplified logIfEnabled calls 2020-08-27 01:39:09 -07:00
Collin Smith
e7f225f887 Flipped enabled level check result 2020-08-27 01:34:12 -07:00
Collin Smith
e142308112 Added Logger#fatal* methods 2020-08-27 01:33:28 -07:00
Collin Smith
4214696808 Added Logger#error* methods 2020-08-27 01:32:44 -07:00
Collin Smith
2b457e3c3a Added Logger#info* methods 2020-08-27 01:31:51 -07:00
Collin Smith
4101724d3d Reorganized code 2020-08-27 01:30:36 -07:00
Collin Smith
a3c99b6e66 Added warn methods 2020-08-27 01:29:16 -07:00
Collin Smith
834d44ca3b Code formatting adjustment 2020-08-27 01:18:24 -07:00
Collin Smith
d9232b3593 Created StringMap class to manage thread context
Created StringMap class to manage thread context
StringMap is ordered and optimized for my use-case
Engineered compact encoding mode to track thread context
2020-08-27 01:17:25 -07:00
Collin Smith
60d50fa15d Added support for compact mdc output 2020-08-26 12:14:01 -07:00
Collin Smith
5e3ecbe8d5 Added support for encoding stack traces 2020-08-26 11:52:15 -07:00