On 12/29/06, Stéphane Magnenat <[EMAIL PROTECTED]> wrote:
Hi,

I've fixed the map edit scroll bug.

Bradley, I noticed that you passed actions as string in the map editor. Why ?
An enum would be as expressive, typesafe, and faster.

Steph

--
http://nct.ysagoon.com


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel


I chose strings mainly because there more friendly. I agree with you,
an enum would be faster and can be as expressive when used properly. I
chose strings simply because speed isn't an issue, I *tried* to make
my map editor slow down my causing events near the bottom to go as
quickly as I can make them, and there was no noticable slowdown.

String events just seem simpler. Its more of a lesson I learned when
coding in python. Simpler is better.



--
Whats long and hard and filled with seamen? My submarine!  -  Bradley Arsenault


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to