From: Chad \Exodist Admin-Ra\ Granum <granum@sb...> - 2004-08-25 02:02:19
in MapTile there is a LinkedList called blocked, currently it is rigged
to store Cooridnate sobjects to represent a rectangular area inside the
tile that is blocked to movement. this is would be great except that the
Tile needs to have blocked areas relative to it's upper left corner.
coordinates are made relative to the upper left corner of the map as a
whole. I think the problem is thus made apparent. the MapTile Blocked
LinkedList needs to be changed (or it's accessor methods I should say)
to use a different object, one that stores an X a Y and a second X and Y
for the opposite corner of the rectangle. An object liek this may
already exist in RPGUniversal, then again it may not, I forgot. whoever
wants to address this can, if there is no such object in
RPGUniversal/ADTs then make one. but simply changing the MapTile class
is not enough, one or two functions inside the map classes may also need
to be changed, they are currently set to check for a collision based on
the Coordinates object they get from the maptile, these should be
changed to get the new type of rectangle holding class and convert it to
a coordinates adding in the extra relativity of the whole map based on
knowing which tile they queried the region from.
if this si confusing just do the first part and notify me so I can do
the second part.
if you are interested in oing this (even in part) notify me (directly
not via mailing list) and I will assign you to do it,