1
0
forked from 0ad/0ad
0ad/source/scripting
pyrolink f2e867e239 #Bar borders and angle penalty
-Changes to notifications. They take different parameters now-see
template_entity_script.js.  You can choose to destroy the notifiers
yourself in the script (useful for idle)
-Added "idle" event with registerIdle and registerDamage to assist with
the angle penalty.
-Bar border stuff
-Angle penalty is set up but untested-it just needs to use
this.getAttackDirections() to find the number of directions the entity
is being attacked from.  The penalty is specified in template_unit

There is a problem when the game exits-it attempts to destroy the
notifiers in entity.cpp's constructor, where it calls
DestroyAllNotifiers().  The problem is that the notifiers don't exist
any longer because they've been destroyed. I would fix it but I'm
leaving for vacation (Jason told me it was OK to comitt). Hope it isn't
too much of a problem.

This was SVN commit r3732.
2006-04-08 22:34:54 +00:00
..
DOMEvent.cpp Linux compat changes, fix for (really old) bug in VertexBufferManager shutdown, GUI header reorganization for gcc 4.0 2006-01-29 18:23:47 +00:00
DOMEvent.h Lots of gcc -Wall fixes. The common ones: 2005-10-07 15:24:29 +00:00
EventTypes.h #Bar borders and angle penalty 2006-04-08 22:34:54 +00:00
GameEvents.h Generic orders source commit. Also includes a fix to the animation bug where one frame of "idle" is played at the end of each cycle, and an enhancement to the entity script loading code to only load each script file once, which should save loading time and also allow script files to behave in a more logical way (e.g. no redeclaration errors when you have a constant). 2005-12-29 08:42:44 +00:00
JSConversions.cpp - fix w4 warnings 2005-08-09 15:55:44 +00:00
JSConversions.h Made ToPrimitive throw on failure (since that is preferable to returning an undefined value) 2005-08-13 18:32:58 +00:00
JSSerialization.h - fix w4 warnings 2005-08-09 15:55:44 +00:00
ScriptableComplex.cpp ConfigDB.cpp: fix vfs_load return value check 2006-01-28 22:21:54 +00:00
ScriptableComplex.h Linux compat changes, fix for (really old) bug in VertexBufferManager shutdown, GUI header reorganization for gcc 4.0 2006-01-29 18:23:47 +00:00
ScriptableObject.cpp New JavaScript interface for the network client, plus some linux/gcc/misc fixes 2005-01-17 04:52:02 +00:00
ScriptableObject.h Function property Getter/Setters now take a JSContext parameter. 2005-10-24 02:32:44 +00:00
ScriptCustomTypes.cpp - fix w4 warnings 2005-08-09 15:55:44 +00:00
ScriptCustomTypes.h - fix w4 warnings 2005-08-09 15:55:44 +00:00
ScriptGlue.cpp #Bar borders and angle penalty 2006-04-08 22:34:54 +00:00
ScriptGlue.h host of changes to accommodate Atlas: 2005-08-14 23:34:37 +00:00
ScriptingHost.cpp - vfs_load now returns error code and takes FileIOBuf; that must be freed via file_buf_free. if Handle is needed, use mem_wrap. 2006-01-24 08:16:29 +00:00
ScriptingHost.h - fix w4 warnings 2005-08-09 15:55:44 +00:00
SpiderMonkey.h - fix w4 warnings 2005-08-09 15:55:44 +00:00
SynchedJSObject.cpp Revamped CNetClient/CNetServer JS Interface and new CGameAttributes 2005-01-19 22:32:25 +00:00
SynchedJSObject.h Lots of gcc -Wall fixes. The common ones: 2005-10-07 15:24:29 +00:00