Thanks Kornel!
Wow,
responding with a quote that quotes a post is tough ;)
Anyway,
- Doors in HaH are in a flat structure, the entity just changes closed door to open door, since I didnt want too many flags in my flat structure ( I am now tempted to undo that )
- Flags : [TF_NOMOVE,TF_NOSIGHT] is really interesting, what would be the type of Flags ? a set ?
- Casting , if you get an object x of class TNode, but you know that really it is also of class TPlayer, how do I force it into a variable y of class TPlayer ? just y := TPlayer(x)?
My RL ( I undid my decision for WesnothRL ) is advancing slowly, but it feels good to do Pascal again. The habits are slowly returning. Where are the days I did Pascal homeworks for money ;)
He Who Sheds Light,
T.