Refactor|LineDef: Moved all LineDef_* functions to methods of LineDef