Commit Graph
19281 Commits
Author SHA1 Message Date
Glenn Maynard 3e456e60fd load in Init() 2006-01-15 19:48:11 +00:00
Glenn Maynard bec6978d60 accidental commit 2006-01-15 19:34:16 +00:00
Glenn Maynard 5a3f362f5d load in Init() 2006-01-15 19:29:33 +00:00
Glenn Maynard f6ea595c12 load in Init() 2006-01-15 19:22:17 +00:00
Glenn Maynard 1c5b3c9002 Transition away from Screen(sName). 2006-01-15 19:18:57 +00:00
Glenn Maynard 40ce1c2356 fix crash 2006-01-15 19:17:50 +00:00
Glenn Maynard 735a198c06 load in Init() 2006-01-15 19:13:38 +00:00
Glenn Maynard ced8fd4561 Transition away from Screen(sName). 2006-01-15 19:04:34 +00:00
Glenn Maynard 470c909ec6 Transition away from Screen(sName). 2006-01-15 18:54:03 +00:00
Glenn Maynard edb6479aff load metrics in Init 2006-01-15 18:46:30 +00:00
Glenn Maynard 87ea090b9b Transition away from Screen(sName). 2006-01-15 18:37:57 +00:00
Glenn Maynard 1fe278b48d Transition away from Screen(sName), to Screen(); set the name just
before calling Init().  This will reduce the amount of repetitive
boilerplate code for screens, allowing a screen to have no explicit ctor.
2006-01-15 18:36:40 +00:00
Glenn Maynard 4ed508978a use GetNextScreen() 2006-01-15 18:35:26 +00:00
Glenn Maynard 46485f885d use Init() 2006-01-15 18:30:35 +00:00
Glenn Maynard ad10e2fb34 skip with Post, not Handle 2006-01-15 18:29:50 +00:00
Glenn Maynard b07a27f7aa fix disappearing arrows 2006-01-15 18:28:16 +00:00
Steve Checkoway d8dad3f4b5 Update to Xcode 2.2.1. 2006-01-15 13:22:49 +00:00
Steve Checkoway b4a2e38f11 Cleanup spacing, fix check HAVE_WCSLEN, and use __BEGIN_DECL and __END_DECL to keep Xcode from wanting to indent all of the functions another level. 2006-01-15 13:01:30 +00:00
Steve Checkoway 1f8ee7124c Use SM_ALIGN. Cleanup spacing. 2006-01-15 12:55:38 +00:00
Steve Checkoway afe2e0efd9 The OS X 10.4u SDK defines ALIGN(p) as (((unsigned int)(p) + ALIGNBYTES) &~ ALIGNBYTES) so use SM_ALIGN instead. 2006-01-15 12:55:00 +00:00
Steve Checkoway 2979d02878 global.h should not be included by header files. 2006-01-15 12:53:22 +00:00
Steve Checkoway 75ec9b356c PBXGetVolInfoSync is deprecated but there are something like 15 different functions with different prefixes that all do about the same thing. For now, just mark it as deprecated until I can figure out which I should be using. 2006-01-15 12:22:47 +00:00
Steve Checkoway ca51dc9bd3 Apple decided to deprecate two perfectly good functions, replace them with lower level dyld code and use two-level namespace lookup instead. 2006-01-15 12:21:19 +00:00
Steve Checkoway 95ad9d9ac8 The 10.4u SDK doesn't contain this method so add it as a category on NSApplication but do not define it. This shuts gcc up and should still work. 2006-01-15 12:17:07 +00:00
Steve Checkoway 83e18b9a82 Virtual functions but no virtual dtor. 2006-01-15 11:46:01 +00:00
Steve Checkoway 3a1c0fa30e Fix building for i386 OS X. 2006-01-15 11:45:03 +00:00
Steve Checkoway 286c978484 cleanup. 2006-01-15 11:10:23 +00:00
Steve Checkoway d42617abf1 Remove unused. 2006-01-15 11:07:30 +00:00
Glenn Maynard c4206ef3f7 fix base not called 2006-01-15 09:25:52 +00:00
Glenn Maynard 160b4e72a8 fix dependency 2006-01-15 09:19:48 +00:00
Glenn Maynard 0ec8486dfa prefer to do work that needs m_sName in Init() (prep work for later stuff) 2006-01-15 09:09:34 +00:00
Glenn Maynard 56fde437cf missed one 2006-01-15 08:56:45 +00:00
Glenn Maynard c5b71c0631 remove logs (this stuff predates the crash handler and has been copied
and pasted around since)

jesus we have a lot of screens
2006-01-15 08:54:03 +00:00
Glenn Maynard 9056419cf5 remove logs (this stuff predates the crash handler and has been copied
and pasted around since)
2006-01-15 08:51:03 +00:00
Glenn Maynard 2b00a2f62a simplify 2006-01-15 08:41:17 +00:00
Glenn Maynard 0fcdffd9b4 reorder 2006-01-15 08:37:34 +00:00
Glenn Maynard eb0789f057 simplify 2006-01-15 08:35:08 +00:00
Glenn Maynard 51079573e2 reset m_sNextScreen and m_sPrevScreen in BeginScreen() 2006-01-15 08:28:00 +00:00
Glenn Maynard 9ca202d311 remove transition 2006-01-15 08:21:03 +00:00
Glenn Maynard 0ff2505831 PlayerNumber(0) -> PLAYER_1 2006-01-15 08:15:27 +00:00
Glenn Maynard cfedf33602 remove empty overload 2006-01-15 08:13:24 +00:00
Glenn Maynard e341ce46bb remove unused 2006-01-15 08:12:27 +00:00
Glenn Maynard 49bdcb8936 unused 2006-01-15 08:10:26 +00:00
Glenn Maynard 6467fa0bc4 simplify, eliminate GetAndClearScreen 2006-01-15 08:09:03 +00:00
Glenn Maynard cb4739ff31 Use ApplyCommitsScreens. This is simpler, and eliminates one of the
few remaining uses of "NEXT_SCREEN" (deviations from the Screen path)
and nonstandard "SM_GoToNextScreen".
2006-01-15 08:04:40 +00:00
Glenn Maynard 55efe79054 Most of the time we use a GameCommand to store state, we don't want
Apply() itself to load the screen; we want to stuff it in m_sNextScreen
and let the normal screen loading code path do it.  That's why we have
GetAndClearScreen.

However, GetAndClearScreen is a non-const, and applying a GameCommand
should be a const operation.  It doesn't get along well with screen
reuse; once you've applied it, you've destroyed the GameCommand.

Instead, hold a flag indicating whether or not to apply screens, and
set this true on load when we handle it manually.  We should probably
*always* do this, and never load a screen within GameCommand itself, so
this may go away soon (always on).
2006-01-15 08:00:37 +00:00
Glenn Maynard 1d186c481d const fix 2006-01-15 07:12:05 +00:00
Glenn Maynard 6be6053227 const fix 2006-01-15 07:10:05 +00:00
Glenn Maynard 599c024df2 remove unused 2006-01-15 07:03:04 +00:00
Glenn Maynard b744d72b74 style 2006-01-15 06:58:18 +00:00