Jump to content

Functions that handle the game's mechanics


jeffnz
 Share

Recommended Posts

I'm not interested in specialised things like animation, graphics or ai. Where do I find the functions that are responsible for basic gameplay mechanics? I mean the functions that handle practical things, like unit creation/unit death, construction, and the in-game UI. What files should I look at? I can use ctrl + f in Visual Studio 2013 but it isn't very useful.

Link to comment
Share on other sites

Cool, 'spidermonkey' in sources is the one.

"spidermonkey: Mozilla's JavaScript engine written in C/C++. JavaScript is the game's scripting language of choice (game logic, AIs, random maps, etc)"

I'm so stupid I thought that Spidermonkey was written in javascript, but it's written in C/C++ and it handles javascript but it isn't javascript itself LOL

Update: what files are part of spidermonkey? Is it source\scriptinterface?

Update 2: "ScriptEngine scriptEngine" that looks like the initialisation of Spidermonkey and it's in main.cpp

Update 3: I searched the entire VS 'solution' for references to 'ScriptEngine' and 'scriptEngine' and couldn't find very many. It doesn't seem to lead me to anything that I was looking for.

Edited by jeffnz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...