Commit Graph

175 Commits

Author SHA1 Message Date
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 05fc1ac307 includes 2005-12-29 19:16:25 +00:00
Glenn Maynard 443e80551f prefer standard find() over Find 2005-12-21 08:27:00 +00:00
Glenn Maynard 7df3399dec partial revert for now 2005-11-29 18:05:16 +00:00
Glenn Maynard ce84697994 reuse ActorFrame 2005-11-29 17:34:21 +00:00
Glenn Maynard e2f20b43d5 don't reinit ActorFrame stuff 2005-11-29 17:27:34 +00:00
Glenn Maynard 348a3fb4e0 remove BGAnimationLayer::Unload, BGAnimationLayer::Init 2005-11-29 17:23:04 +00:00
Glenn Maynard 207987ec45 remove extra Init() calls 2005-11-29 17:20:10 +00:00
Glenn Maynard c9cb09dd36 ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode 2005-10-11 02:51:05 +00:00
Glenn Maynard 94ea3cb9e0 cleanup 2005-09-03 00:30:46 +00:00
Glenn Maynard 6a8a81a095 remove Generic stuff. It broke a while back, and it's too painful to keep around. 2005-08-31 22:15:33 +00:00
Glenn Maynard dc40ed8f64 remove "Cond" 2005-08-31 19:56:46 +00:00
Glenn Maynard 1c81bcc5fc EarlyAbortDraw() const 2005-08-25 00:57:53 +00:00
Glenn Maynard 0532a3db79 cleanup 2005-07-07 10:48:02 +00:00
Glenn Maynard 0703b84953 sprite -> autoactor 2005-07-06 05:09:52 +00:00
Glenn Maynard 6a8940d5a4 LuaHelpers::RunExpressionB 2005-06-16 06:23:59 +00:00
Chris Danford 98784d3fb5 Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating 2005-06-11 10:32:58 +00:00
Chris Danford dac72665e3 move background file enumerating into BackgroundUtil.*
fix editor background change functionality
2005-05-31 01:17:37 +00:00
Steve Checkoway c0c82a0527 Fix Linux compile. 2005-05-18 02:01:00 +00:00
Chris Danford 66a30e72b8 optimize: Add GetTimeSinceStartFast() that caches the time for archs where GetMicrosecondsSinceStart() is slow 2005-03-21 21:40:07 +00:00
Chris Danford ca09e21104 move render state effect variables out of BGALayer and into ActorFrame 2005-02-28 04:14:25 +00:00
Chris Danford 4d31f3b4c1 evaluate TargetNumber as a Lua expression 2005-02-16 00:16:14 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Chris Danford cd9c48d645 LuaHelpers -> LuaManager 2005-01-24 02:26:55 +00:00
Glenn Maynard 91a6486f9e start changing Lua to a singleton object 2005-01-19 22:27:24 +00:00
Chris Danford 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Chris Danford cda4c3b04a make Actor LoadFromNode signatures consistent 2005-01-17 05:28:16 +00:00
Chris Danford a5d40aad79 fix default.xml loading
add Condition check in LoadFromActorFile
2005-01-17 04:08:08 +00:00
Glenn Maynard 5057144536 remove old debug (note: FAIL_M(x) is better than ASSERT_M(0, x)) 2005-01-16 19:43:13 +00:00
Glenn Maynard 8f99164eb5 All BGAnimations are "generic", except for those loaded directly from
Background.  This should be more consistent (we were creating BGAnimations
as non-generic in some places where it probably should have been generic).
This means all themes need to explicitly set the position of all BGAnimation
graphics, which is good practice anyway.
2005-01-16 18:25:29 +00:00
Glenn Maynard 8ef0fff740 cleanup 2005-01-15 22:58:27 +00:00
Glenn Maynard f256618fe1 no need to persist some of this particle stuff 2005-01-15 22:52:46 +00:00
Glenn Maynard ad7b93372a EFFECT_TILE_PULSE isn't in m_Type ... 2005-01-15 22:36:23 +00:00
Glenn Maynard a0e9c5a8c6 Remove CommandRepeatSeconds. Instead, do:
OnCommand=x;y;z;queuecommand,playcommand,On
2005-01-15 22:31:43 +00:00
Glenn Maynard 762c9a77fb cleanup 2005-01-15 22:29:42 +00:00
Glenn Maynard 635d5e43e2 eliminate LoadFromStaticGraphic 2005-01-15 20:48:20 +00:00
Glenn Maynard 594587607c Eliminate BGAnimation::LoadFromMovie and BGAnimationLayer::LoadFromMovie. 2005-01-15 20:37:46 +00:00
Glenn Maynard 66d39dd65c Add ActorFrame::DeleteChildrenWhenDone, to call DeleteAllChildren automatically.
Move movie GainFocus/LoseFocus handling to Sprite.
Visualizations are part of Background, not BGAnimation; move them there.  Remove BGAnimation::LoadFromVisualization and BGAnimationLayer::LoadFromVisualization.
2005-01-15 20:32:35 +00:00
Glenn Maynard f4a51bef4d move FullScreenRectF into ScreenDimensions.h 2005-01-15 19:44:32 +00:00
Glenn Maynard 6d64f3aa78 cleanup 2005-01-15 19:42:47 +00:00
Glenn Maynard 336a035660 BGAnimationLayer::LoadFromIni -> BGAnimationLayer::LoadFromNode 2005-01-15 13:56:05 +00:00
Chris Danford ea43f8ee1b support loading BGAs from XML 2005-01-07 22:01:57 +00:00
Chris Danford 981e52ec58 merge IniFile and XmlFile 2005-01-07 14:28:00 +00:00
Glenn Maynard a07ebba4ff narrow the m_bGeneric case a bit; add explanation 2005-01-06 18:57:52 +00:00
Glenn Maynard 972ccb65df Once BGAnimation is handled mostly by AutoActor, all BGAnimations will
be "non-generic" (and probably deprecated); let's aim to move all "generic"
logic into BGAnimation, out of BGALayer.
2005-01-06 18:46:03 +00:00
Glenn Maynard 7478087fab seems to work; cleanup 2005-01-06 17:56:05 +00:00
Glenn Maynard 8a382a30da That doesn't even make sense; this is a Type switch, not Effect. Just
remove it; it's been commented out for a long time anyway.
2005-01-05 01:43:32 +00:00
Glenn Maynard c0ad10f990 cleanup 2005-01-05 01:12:56 +00:00
Glenn Maynard 8b609cdc08 remove stuff commented out
fix SPIRAL while I'm here
2005-01-05 01:06:18 +00:00