Well, i tried to read the line.h file so i can understand it myself, but to me it looks like unmaintainable code. I have noticed when programming (c++) that everything has some logic, like its not how you would do it in common sense; like you don’t type loop(100) to loop, you do it some other way like for (int i; i<100; ++i). I just wanna understand how the line algorithm works.
When i googled the algorithm, it usually describes it as “draw a line from x to y”, which is what the line does of course.
But in cataclysm the line is used in the vehicle.h file, it somehow makes the line have things in it, like on the line it has a frame, seat, wheel, etc (but I’m not sure if it works that way :S).
How i think how it works is by using a vector and somehow merging the algorithm into it, and the vector will be later defined as how many elements it will have, and the elements will be defined as a frame, wheel, seat, etc.