Dec 24, 2012 01:43
As the subject line declares.
The cursor used by a depth selector to obtain the depth figure at selection time can be attached to a static field in the DepthSelector subclass itself. By default this would thus point to World().cursor, but it would accommodate other applications by changing the pointer to something else, and this allows me to preserve the Selector API.
It's slightly more elegant this way. It's not the simplest way, probably, but since I can't think of a simpler way right now maybe Occam's razor holds anyway.
Apart from my lack of focus (for a variety of reasons I don't care to get into at present for the sake of not indulging in such mind-numbing banalities) the reason I haven't worked this out yet is because it'll be a lot of work and there'll be a lot of heavy rewrites to the existing code. Before I tear everything down to hell, I need to decide what should be kept and what should be scrapped before I delete some code I might have needed later.
If I fell in love with a programmer or something then this would all be much easier. I'd have a mentor who I would also have sex with, and I'd probably make it worth her while by steaming quinoa and broccoli for dinner (topped with parsley) every single night for the rest of her life. Or until she killed me, whichever came first. It's okay, no court would convict her for that. Self-defence. I shouldn't have attacked her with all that healthy food, like some hippy European. Because Europeans don't just consume chocolate and wine and Thai food and Punjabi mix. No sir.
soulthieves labyrinth engine