This wiki is out of date, use the continuation of this wiki instead

ProcessType

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:50, 23 March 2007 (edit)
130.89.160.132 (Talk)

← Previous diff
Revision as of 13:59, 23 March 2007 (edit) (undo)
Sandman (Talk | contribs)

Next diff →
Line 7: Line 7:
</pre> </pre>
The [[type]] [[statement]] expects the name of a processtype after it and converts it to the [[ProcessTypeID]] associated with the given processtype. The [[type]] [[statement]] expects the name of a processtype after it and converts it to the [[ProcessTypeID]] associated with the given processtype.
 +
 +
 +
 +----
 +
 +--[[User:Sandman|Sandman]] 14:56, 23 March 2007 (CET)

Revision as of 13:59, 23 March 2007

A processtype is a definition of a process; not the actual instance, but the type.
There can be multiple instances of one processtype with differing ProcessID's, but there's always one processtype of the same type with one ProcessTypeID, which is as logical as it sounds. For example, one can have a SpaceShip processtype (see the example in process). In the example code, an instance of SpaceShip is created, by calling SpaceShip(). Consider one wants to check in the SpaceShip if it collides with another SpaceShip. This can be done using the following.

if(collision(type SpaceShip))
    // collision code
end

The type statement expects the name of a processtype after it and converts it to the ProcessTypeID associated with the given processtype.



--Sandman 14:56, 23 March 2007 (CET)

Personal tools