Commit Graph
24 Commits
Author SHA1 Message Date
Glenn Maynard fae7e5b265 oops, wrong guy 2005-06-20 05:08:51 +00:00
Glenn Maynard 0b3c14888f cleanup, fix name 2005-06-20 05:05:55 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard 4dd73b2c81 fix comment (no new T is created) 2005-06-20 04:42:11 +00:00
Glenn Maynard 72e7a4b1e4 cleanup 2005-06-20 04:32:24 +00:00
Glenn Maynard aff28653da Rearrange Lua types. Instead of each class registering all of the functions
of its base classes, set __index in the methods table to point to the base class's
methods table.  This has a few important advantages.  First and most importantly,
types don't need access to the Luna type of their base to derive from it, so these
definitions don't have to be in the headers, and probably don't need to be
templated.  Second, you can say:

function Actor:queue_rotate()
   self:linear(0.5)
   self:rotationz( 180 )
end

OnCommand=x,100;queue_rotate

This partially worked previously, but wasn't inherited; a function defined for
Actor wouldn't work for BitmapText.

(changes that use this in a few minutes)
2005-06-20 03:54:51 +00:00
Glenn Maynard 8c121d4598 s_className -> m_sClassName 2005-06-20 00:33:07 +00:00
Glenn Maynard 6bfb3f0bad pass L to LuaHelpers::TypeError 2005-06-15 08:33:26 +00:00
Glenn Maynard c724b4ad53 dependency cleanup 2005-05-29 03:47:40 +00:00
Glenn Maynard e504164796 debugging message assumes that method calls ("x:y()") have an initial
self argument; we remove it, causing off-by-one error messages
2005-05-28 07:27:49 +00:00
Glenn Maynard d8a82be539 implement == for lua objects 2005-05-24 20:56:38 +00:00
Glenn Maynard 3b993dfa08 Replace PopStack with FromStack as a basic overloaded function.
Move Push and FromStack into a namespace, so other files can add to it;
that way, we can say Push(1) or Push(Actor*), instead of Push(1) and
pActor->PushSelf(), allowing easier templating.
Add presently unused/untested LuaHelpers::ReadArrayFromTable.
2005-02-24 20:03:07 +00:00
Chris Danford a2915c038b add TemporaryEventMode flag to GameState 2005-02-21 17:29:49 +00:00
Chris Danford 09f19b9d0c change BArg to look for a Lua boolean type 2005-02-17 21:34:46 +00:00
Glenn Maynard d1a701a9a9 more g++ 3.4 compile fixes 2005-02-05 21:46:52 +00:00
Chris Danford 57c75d43e3 fix gcc compile 2005-02-01 22:40:27 +00:00
Glenn Maynard 4aa142711d fix g++ compile 2005-02-01 19:59:41 +00:00
Chris Danford 275edd909b style cleanup 2005-02-01 07:50:26 +00:00
Chris Danford d6c33c96d6 fix GCC errors and warnings 2005-02-01 07:49:23 +00:00
Chris Danford 68dd253720 use templated classes instead of macros for easier debugging 2005-01-31 08:05:27 +00:00
Glenn Maynard de2b899a5f fix g++ compile 2005-01-26 21:36:01 +00:00
Glenn Maynard 69f515ef76 fix implicit cast warning flood 2005-01-26 18:14:56 +00:00
Chris Danford 8555a6da45 use Lua to execute commands
(needs cleanup)
2005-01-26 11:21:43 +00:00
Chris Danford 29a1bbb993 add macros for Lua binding C++ classes 2005-01-24 02:11:23 +00:00