2025-08-27 09:52 CEST

spring: develop b5bace79 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2008-12-07 20:12:21 develop abf4cd83
Changeset LosHandler & RadarHandler refactor:
* added CLosMap class that abstracts the vector<ushort> that's used as LOS map everywhere
  and that implements some code previously duplicated between CLosHandler and CRadarHandler.
* added CLosAlgorithm that implements the terrain-raycasting LOS algo which was
  duplicated between CLosHandler and CRadarHandler with slightly different parameters.

(Hint: this makes it easier to implement circular/rectangular/raycasted
los/airLos/radar/jammer/...)




git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@7149 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Game/UI/GuiHandler.cpp Diff ] File ]
mod - rts/Game/UI/MiniMap.cpp Diff ] File ]
mod - rts/Lua/LuaSyncedCtrl.cpp Diff ] File ]
mod - rts/Lua/LuaSyncedRead.cpp Diff ] File ]
mod - rts/Sim/Misc/LosHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/LosHandler.h Diff ] File ]
add - rts/Sim/Misc/LosMap.cpp Diff ] File ]
add - rts/Sim/Misc/LosMap.h Diff ] File ]
mod - rts/Sim/Misc/RadarHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/RadarHandler.h Diff ] File ]
mod - rts/System/Vec2.h Diff ] File ]
mod - rts/System/float3.cpp Diff ] File ]