crankycyclops/trogdor-pp

Should Weapon be a class that derives from Object?

Closed this issue · 2 comments

Right now, whether or not Item is a weapon is a boolean flag in Item. Should I instead extend Object with a new type, Weapon? This would require fundamental changes to Parser, and in game.xml, would have to declare object with instead of .

Hmm...

Investigate!

No. There are object "classes" of a sort in game.xml, but those are just short cut for setting certain object properties. We still only have ENTITY_OBJECT, and that's it. Bye bye, ticket!