Where are rods defined in the source code
![Post Post](./styles/ca_halcyon_darkblue/imageset/icon_post_target.gif)
I've found the enum for rods, but that's about it. Does anyone know where their properties are kept?
Dungeon Crawl Stone Soup Forum
https://crawl.develz.org/tavern/
khalil wrote:I've found the enum for rods, but that's about it. Does anyone know where their properties are kept?
mumra wrote:I'm thinking if you want to learn to code, Crawl's source might not be the best place for you to dive in (or for anyone for that matter). It's huge and complex and frequently it's non-obvious how things work; and it's far from being some gleaming example of best practices to follow.
khalil wrote:I already know c++, allthough I use it in conjunction with visual studio for most things. Can't use it for this, because it screws up the code somehow.
khalil wrote:I have only worked with crawl for a few weeks, and I already hate Linley with a passion. It's like he was trying to make it obscure and impenetrable. Did does anyone know if he started off trying to code it procedurally and switched to OOP halfway through or something? Cuz that would explain a lot.
khalil wrote:I already know c++, allthough I use it in conjunction with visual studio for most things. Can't use it for this, because it screws up the code somehow. Either way, I'm stuck editing in notepad, which means a lot of my time is spent looking for the missing semicolon.
I have only worked with crawl for a few weeks, and I already hate Linley with a passion. It's like he was trying to make it obscure and impenetrable. Did does anyone know if he started off trying to code it procedurally and switched to OOP halfway through or something? Cuz that would explain a lot.
galehar wrote:At some point, a good debugger helps a lot and eclipse has a great GUI for gdb.
mumra wrote:galehar wrote:At some point, a good debugger helps a lot and eclipse has a great GUI for gdb.
... Having said the above, I should actually try eclipse at some point if debugging is fairly painless to set up.