The Main script is where the game execution
begins. It contains your start up code, ego instance, status code instance,
and inventory items. It also contains the global
variables.
Classes
Public Procedures
-
void
SetUpEgo([number theLoop, number theView]) |
Sets up the ego.
It enables the player control
and sets the ego's edgeHit to EDGE_NONE. It then sets up it's
view/loop. If theLoop is specified, it sets the ego's loop to
theLoop. If theView is specified, it sets the ego's view to
theView. If neither are specified, the ego's view is set to
the global gEgoView.
|
-
void SetUpActor(heapPtr
theActor[, number theLoop, number theView]) |
Initializes an actor, setting
it's properties to the defaults, and if specified, the loop/view.
|
-
void ProgramControl()
|
Disables user control and input,
and sets the ego's motion to NULL.
|
-
void PlayerControl()
|
Enables user control and input,
and sets the ego's motion to NULL.
|
-
void DisposePrintDlg()
|
If a print dialog is still on
the screen (ie. the user set it up with a timer), it disposes
it.
|
-
void PrintOK()
|
Prints the default "OK"
message.
|
-
void PrintItIs()
|
Prints the default "it is"
message.
|
-
void PrintYouAre()
|
Prints the default "You are."
message.
|
-
void PrintGoodIdea()
|
Prints the default "Good
idea. You might try that again later." message.
|
-
void PrintNotCloseEnough()
|
Prints the default "You're
not close enough." message.
|
-
void PrintAlreadyTookIt()
|
Prints the default "You already
took it." message.
|
-
void PrintDontHaveIt()
|
Prints the default "You don't
have it." message.
|
-
bool PrintCantDoThat(number
mem) |
If MemoryInfo(miFREEHEAP) is greater
than mem, it returns TRUE. Otherwise, it prints the default
"You can't do that here; at least, not now." message
and returns FALSE.
|
-
void AddViewToPic(heapPtr
pView) |
Creates an instance of pView and
adds it to the picture. It then hides the original pView.
|
-
void SetInvIOwner(number
index[, heapPtr owner]) |
Sets the specified inventory item's
owner. If owner is specified, it sets the item's owner to it.
Otherwise, it sets the owner to gRoomNumberExit.
|
|