Atrinik Server  4.0
Functions
button.c File Reference
#include <global.h>
#include <object.h>
#include <object_methods.h>

Go to the source code of this file.

Functions

static int move_on_func (object *op, object *victim, object *originator, int state)
 
static int trigger_func (object *op, object *cause, int state)
 
static int trigger_button_func (object *op, object *cause, int state)
 
static void process_func (object *op)
 
 OBJECT_TYPE_INIT_DEFINE (button)
 

Detailed Description

Handles code for button.

Author
Alex Tokar

Definition in file button.c.

Function Documentation

static int move_on_func ( object op,
object victim,
object originator,
int  state 
)
static

Triggered when an object moves moves off a square and when object moves onto a square.

Parameters
opThe object that wants to catch this event.
victimThe object moving.
originatorThe object that is the cause of the move.
state1 if the object is moving onto a square, 0 if moving off a square.

Definition at line 38 of file button.c.

OBJECT_TYPE_INIT_DEFINE ( button  )

Initialize the button type object methods.

Definition at line 122 of file button.c.

static void process_func ( object op)
static

Processes an object, giving it the opportunity to move or react.

Parameters
opThe object to process.

Definition at line 104 of file button.c.

static int trigger_button_func ( object op,
object cause,
int  state 
)
static

An object is triggered by a button.

Parameters
opThe object being triggered.
causeThe object that is the cause of the trigger; the button.
stateTrigger state.

Definition at line 72 of file button.c.

static int trigger_func ( object op,
object cause,
int  state 
)
static

An object is triggered by another one.

Parameters
opThe object being triggered.
causeThe object that is the cause of the trigger.
stateTrigger state.

Definition at line 54 of file button.c.