1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-19 13:45:23 +00:00
OpenDiablo2/d2common
danhale-git 894c60f77a
Map entity rework - vectors in mapEntity (#579)
* Fixed NaN on normalize 0 vector.

* Tentative implementation in getStepLength.

* mapEntity.TileX/Y removed.

* Fixed Position and Target not being initialised in createMapEntity.

* mapEntity.Position is no longer embedded.

* mapEntity.LocationX/Y no longer used outside map_entity.go.

* mapEntity.subCellX/Y removed.

* mapEntity.LocationX/Y removed.

* mapEntity.OffsetX/Y and TargetX/Y removed.

* Direction method added to Vector, returns 0-64 direction.

* Moved Vector.Direction() to Position.DirectionTo and refactored.

* Renamed RenderOffset from SubCell and tested IsZero.

* d2math.WrapInt added for use with directions.

* Tidied up position and tests.

* Refactored d2common.AdjustWithRemainder into d2mapEntity.

* Tidying up d2mapEntity.

* Final cleanup.

* Lint warnings.

* Spelling correction.
2020-07-13 09:06:50 -04:00
..
d2astar Replace ebitenUtil with d2DebugUtil and new charmap for debugger. (#577) 2020-07-11 18:12:20 -04:00
d2data Properties.txt loader (#580) 2020-07-13 09:02:09 -04:00
d2DebugUtil set compositing on debug print so text bg is transparent (#578) 2020-07-11 20:33:20 -04:00
d2enum Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
d2fileformats Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
d2interface Vector float64 (#565) 2020-07-09 08:30:55 -04:00
d2math Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
d2resource Properties.txt loader (#580) 2020-07-13 09:02:09 -04:00
bitmuncher.go Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
bitstream_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
bitstream.go Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
build_info.go merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
cache.go Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
calcstring.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
data_dictionary.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
doc.go moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
math.go Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
music_defs.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
path_tile.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
path.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
Point.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
rectangle.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
size.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_reader_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_reader.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_writer_test.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stream_writer.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
stringutils.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
text_dictionary.go lint fixes for the d2common package (#558) 2020-07-08 09:16:56 -04:00
timeutils.go Working on d2input.go for #487 (#514) 2020-07-01 14:03:40 -04:00