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
Current revision (11:03, 20 April 2007) (edit) (undo)
Sandman (Talk | contribs)
m
 
(3 intermediate revisions not shown.)
Line 1: Line 1:
 +[[Category:general]]
 +
A processtype is a definition of a [[process]]; not the actual [[instance]], but the type.<br /> There can be multiple [[instance]]s 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. A processtype is a definition of a [[process]]; not the actual [[instance]], but the type.<br /> There can be multiple [[instance]]s 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. 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.

Current revision


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.

Personal tools