- This wiki is out of date, use the continuation of this wiki instead
ProcessType
From FenixWiki
(Difference between revisions)
Revision as of 11:02, 18 April 2007 (edit) Sandman (Talk | contribs) m (Processtype moved to ProcessType) ← Previous diff |
Current revision (11:03, 20 April 2007) (edit) (undo) Sandman (Talk | contribs) m |
||
(One intermediate revision 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. | ||
Line 7: | Line 9: | ||
</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) |
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.