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

Signals

From FenixWiki

Revision as of 14:27, 1 May 2007 by Sandman (Talk | contribs)
Jump to: navigation, search


The following signals can be sent from one process to another (these are predefined constants that can be passed as the "signal" parameter):

  • s_kill - Order to kill the process. The process will not appear in the following frames of the game any longer.
  • s_sleep - Order to make the process dormant. The process will remain paralyzed, without executing its code and without being displayed on screen (nor being detected by other processes), as if it had been killed. But the process will continue to exist in the computer's memory.
  • s_freeze - Order to freeze the process. The process will remain motionless without running its code. But it will continue to be displayed on screen and it will be possible to detect it (in the collisions) by the rest of the processes. The process will continue to exist in the computers memory even if its code is not executed.
  • s_wakeup - Order to wake up the process. It returns a slept or frozen process to its normal state. The process will be executed and displayed again from the moment that it recieves theis signal normally. A process that has been killed cannot be returned to its normal state by this method (or at all).

In addition to these there are the following signals that have the same effect, but affect a range of processes, not just a single process:

These will have the effect of their non-tree counterparts, but will affect the process indicated by the "processID" or "processName" parameter and all of the processes created by those processes, either directly, or indirectly. So if an s_kill_tree signal is sent to a process, that process will die, all of the processes that it created will die, and all of the processes that they created will die, and so on. The exception to this is where there is an orphan process, that is a process to whose father is already dead.

Personal tools