EMType

From Project X Wiki
Revision as of 10:21, 9 August 2012 by DonaldTurner (talk | contribs) (minor updates)
Jump to: navigation, search
Up one category:
Scripting

enum EMType = (M_FRAME = 2, M_DRAWQUEUE = 3, M_INPUT = 4, M_EXPLOSION = 28, M_ENTER = 36, M_SPACE = 38, M_GUNEXP = 75, M_REBUILDWPANEL = 106, M_SHOWMESSAGE = 85, M_SETTEAM = 67, M_TURNBEGIN = 52, M_AFTERRETREAT = 53, M_TURNEND = 55, M_SKIPTURN = 40, M_SETDELAY = 47, M_SETDELAYB = 48, M_UPDATEWIND = 84, M_SETWORM = 63, M_AFTERSHOOT = 73);


Enumeration that describes possible types of messages.

2. M_FRAME - This message is sent by CTurnGame to every object each game physics step.

3. M_DRAWQUEUE - Time to build queue of drawing sprites. Use RenderSprite etc. for it.

4. M_INPUT - This message sent by game before M_FRAME, for preparing reaction to user's input.

28. M_EXPLOSION - Explosion message.

36. M_ENTER - This is sent when the player presses enter (TODO: where is it called?)

38. M_SPACE - This is sent when the player presses space (TODO: where is it called?)

40. M_SKIPTURN - Sent when the player skips the turn

47. M_SETDELAY - Sent when the player sets the delay using the 1-5 keys.

48. M_SETDELAYB - huh (bounce?)

52. M_TURNBEGIN - Called when the turn begins. (Called when the worm becomes active)

53. M_AFTERRETREAT - Called when the retreat time is over.

55. M_TURNEND - Called when the turn ends. (Called when the worm becomes inactive)

63. M_SETWORM - idk

67. M_SETTEAM - wat

??. M_SETWEAPON - Called when the weapon selected.

73. M_AFTERSHOOT - Called after the player shoots.

75. M_GUNEXP

84. M_UPDATEWIND - Updates the wind bar at the bottom right

85. M_SHOWMESSAGE

106. M_REBUILDWPANEL - wat

Would Gandhi Use Social Media?

If Gandhi were alive today, would he use social media? He was never anti-technology, or even anti-changing with the times. Quite the opposite, actually. If Internet technologies and social networks were around, he would certainly have embraced them -- but with a conscious mindfulness of their strengths and weaknesses.

[Would Gandhi Use Social Media?]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Authors Nominate Top Books of All Time

In 2002, the Norwegian Book Clubs gathered 100 authors from 54 countries and asked each one to list the 10 best works of fiction of all time. The authors responded and this list was created. The titles are arranged alphabetically by author name, so no one book stands above any other. The following list is the groups selection of the worlds 100 best books.How many have you read?

[Authors Nominate Top Books of All Time]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

15 Things You Should Give Up To Be Happy

Here is a list of 15 things which, if you give up on them, will make your life a lot easier and much, much happier. We hold on to so many things that cause us a great deal of pain, stress and suffering and instead of letting them all go, instead of allowing ourselves to be stress free and happy we cling on to them. Not anymore. Starting today we will give up on all those things that no longer serve us, and we will embrace change. Ready? Here we go:

[15 Things You Should Give Up To Be Happy]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

The Radical Linguist Noam Chomsky

For centuries experts held that every language is unique. Then one day in 1956, a young linguistics professor gave a legendary presentation at the Symposium on Information Theory at MIT. He argued that every intelligible sentence conforms not only to the rules of its particular language but to a universal grammar that encompasses all languages.

[The Radical Linguist Noam Chomsky]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Three Qualifications for the New Politician

There are plenty of politicians who genuinely desire to serve their communities and nations with humility and integrity, dedicating their lives to the cultivation of a wisdom that will benefit society at large; sadly, they are a minority.

[Three Qualifications for the New Politician]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]