Commit Graph

784 Commits

Author SHA1 Message Date
d910a6026a Removed qualification from INVALID_ITEM within ItemData 2020-05-30 16:22:01 -07:00
c6468eb788 Created ItemManager system to interface char data item events with engine 2020-05-30 16:17:50 -07:00
e1443d0acf Renamed ItemManager to ItemEffectManager 2020-05-30 16:16:51 -07:00
6860d8cba1 Implemented improved CharData class
CharData has been fully replaced with a version that doesn't just wrap a D2S file
Added support for a more event-based action approach with the UI
Event systems still need to be added to engine to perform CharData item operations
Decoupled com.riiablo.Cursor from D2S cursor item management -- defers to Riiablo.charData instance
2020-05-28 13:07:24 -07:00
c4d2bc58a5 Extended new char data API
Added some additional load methods and util functions
Added some backwards compat functions to grab item index, etc
D2S#copyTo(CharData) calls D2S#loadRemaining automatically
Added CharData#obtain to return an uninitialized (possibly dirty) CharData
Added CharData#preloadItems which loads player and merc items
CharData#load(D2S) will set CharData to managed
2020-02-03 15:25:00 -08:00
63c46de6bf Added notification to subscribers when skills changed via item update 2020-01-18 19:19:15 -08:00
caef08f56a Refactored line order 2020-01-18 19:15:41 -08:00
2d4b2a72a9 Added support for updating stats
Implemented support for updating items, item stats, and applying stats to ItemData attributes field
Added reference to CharStats.Entry to ItemData -- this may be removed when hireling stats are implemented more thoroughly
Added clear method in CharData to support chaining CharData reset methods clear().load(D2S)
Added empty base stats for hireling -- fixes issues with applying hireling stats to their own Attributes
2020-01-18 15:10:44 -08:00
f5552947dc Added sets parameter to Item#update
Passed sets map should correspond to any set-counting entity (player or hireling)
Added fix to ignore CharStats.Entry field in Attributes#op if null (for hirelings)
2020-01-18 15:03:54 -08:00
b5303828a9 Changed Item#update(CharData) to Item#update(Attributes,CharStats.Entry)
This is intended to decouple CharData from Attributes application for hirelings
2020-01-18 02:54:24 -08:00
a8999db873 Fixes crash when opening HirelingPanel before items have finished loading 2020-01-18 02:52:39 -08:00
d8ff97e4a5 Added LocationListener to subscribe to item location changes (specifically for belt and possibly cursor as well) 2020-01-17 03:16:35 -08:00
1465af857c Set compileOptions compat for android build to java 1.8 to support flatbuffers 1.11 bytecode 2020-01-16 16:34:36 -08:00
57589f7312 Moved pickup and store methods to ItemData
Added support for store listeners
CharData store methods are now simple calls up to player ItemData reference
2020-01-16 16:17:54 -08:00
d20f8fcab4 Renamed location methods to store since they are placing items in store locations 2020-01-16 15:58:45 -08:00
3055ccccd5 Added update listener
CharData now implemented Pool.Poolable interface for future Pooling support
Changed CharData to implement factory pattern for pooling
2020-01-16 02:04:11 -08:00
1666c528e7 Moved AlternateListener to ItemData 2020-01-11 17:15:40 -08:00
0c48569120 Moved alternate field to ItemData
Removed some ItemData related methods from CharData for the time being
Moved initial stat assignments to reset method since only set at initialize
Started implementing stat tracking in ItemData instead of CharData
Above change needed because merc stats should track differently than player
Changed initial value for cursor field to INVALID_ITEM for consistency
2020-01-11 15:10:17 -08:00
62bee72c93 Added equip and unequip support to ItemData
Equip and unequip manage equipped enum map and set counter updates
Changed EquipListener onChanged to onEquip and onUnequip
Removed support for swapping equip items within a single call (swapping is an aggregate now)
UpdateSets changed to updateSet that will add or remove item based on add parameter
Added Attributes field to ItemData constructor -- items will apply attrs to this field
2020-01-11 02:03:39 -08:00
6cbea53c19 Moved alternate listener to separate CharData.AlternateListener class
This change removed need for EquipAdapter
2020-01-10 19:22:39 -08:00
997c57ad5e Committing first iteration of CharData redesign
Changed API to work with item indexes (should simplify networking code)
Created ItemData abstraction to separate player and merc items
Moved set item fields to ItemData since they should eventually be distinct
Created EnumIntMap as a better primitive container for enum ordinals
D2S is now a container for saves, not the operational data itself
D2S CharData changes are intended to decouple them both and make D2S specifically to serialize and deserialize the data
2020-01-10 17:48:58 -08:00
9b78c010e9 Added CharData to Item#update() parameters -- cannot rely on Riiablo.charData in multiplayer cases 2020-01-07 14:07:59 -08:00
23376c4bdc Closes #72 2020-01-07 02:22:36 -08:00
f685184c3c Changed some method names
Renamed getEquipped to getSlot since this returns the equipped item at the specified slot
Renamed getEquipped2 to getEquipped since this will return the item at the properly alternated slot (the equipped item)
2020-01-07 01:09:27 -08:00
ec63e6806d Added constants for difficulties 2020-01-07 00:46:20 -08:00
1cb5e160d2 Resolved todo -- replaced static NUM_DIFFS field with pointer to Riiablo.MAX_DIFFS 2020-01-06 17:25:22 -08:00
f78a3a2d08 Moved D2S to com.riiablo.save 2020-01-06 15:26:00 -08:00
361158a481 Moved some engine consts to Riiablo class 2020-01-06 15:18:28 -08:00
b534fed719 Created engine consts for acts and diffs 2020-01-06 14:09:31 -08:00
c9a5e50a1c Renamed charClass to classId 2020-01-06 01:35:05 -08:00
0768b5b8cc Renamed getSkill to getAction 2020-01-04 14:54:48 -08:00
dc1aff5b4a Fixed log tag error 2020-01-04 02:10:56 -08:00
a1bca12d62 Defer item inv file finish loading to future frame 2020-01-01 03:20:44 -08:00
ff7a27d334 Added support for serializing and synchronizing dropped items
Added support for serializing and synchronizing dropped items
Picking up items not supported yet -- requires API change
Added packet types for DropItem and PickupItem
Added ItemP component table and ItemSerializer
Added EntityFactory#createItem(Item,float,float)
Removed CharStats.BlockFactor from Stat.toblock item property -- should be applied on view stats and base character properties list
2019-12-31 02:46:34 -08:00
f5179bbaaa Changed CofAlphas packet from float32 to uint8 (fixed point) 2019-12-30 02:39:57 -08:00
acd6d1691f Changed alphas from float32 to ubyte8 (fixed point) 2019-12-30 02:20:48 -08:00
ad9a0be434 Increased buffer size to 8192 to accommodate larger d2s streams 2019-12-30 00:48:08 -08:00
65e58e8bbe Added D2S serialization to Connection packet 2019-12-30 00:14:48 -08:00
cf180ee496 Updated gif 2019-12-29 21:30:48 -08:00
83476f6a65 Changed Sync to EntitySync, SyncData to ComponentP, Sync.data to Sync.component
Changed Sync to EntitySync, SyncData to ComponentP, Sync.data to Sync.component
This should result in cleaner API readability
Adjusted API slightly within NetworkSynchronizer + added note for future change
2019-12-29 15:29:53 -08:00
5d7ecce6d7 Changed from IteratingSystem to BaseEntitySystem 2019-12-29 01:54:28 -08:00
75405efe09 Added flatbuffers to readme 2019-12-28 23:30:57 -08:00
aa332fbb65 Added videos 2019-12-28 23:25:17 -08:00
25e057c08a Only send connection packets to unconnected players -- prevents flooding until sync packets aggregated 2019-12-28 22:45:42 -08:00
03c620d574 Deprecated class type serialization in favor of adding the field to Sync table directly 2019-12-28 17:05:34 -08:00
6b57dc8813 Added serialization and network synchronization for monster entities
Added serialization and network synchronization for monster entities
Blocked local monster creation when socket is non-null
2019-12-28 16:56:26 -08:00
dd6dbca0f6 Enabled AI stepping with basic velocity adder system
Enabled AI stepping with basic velocity adder system
Created ServerAudio implementation of Audio which ignores Riiablo.audio calls
2019-12-28 01:25:44 -08:00
788df90239 Added networking support for warps
Created WarpP and WarpSerializer
Created Map.Zone#addWarp(int) to support inserting warp entities to parent zones
Changed implementation of MapManager to insert warp entities using above method
2019-12-27 15:23:12 -08:00
aba55c5ffa Added cases for other item types 2019-12-27 14:37:17 -08:00
a49f73f6c4 Added networking for object entities
Added networking for object entities
Casted cof component in flatbuffers to ensure they are sign extended properly (0xFF was not becoming 0xFFFFFFFF which is a special value)
Added additional check in CofManager#setComponent to ignore change if redundant
Increased output packet queue to 1024 -- will eventually group all sync packets into a single packet
2019-12-27 00:47:26 -08:00