Atrinik Server  4.0
Functions
pedestal.c File Reference
#include <global.h>
#include <arch.h>
#include <object_methods.h>
#include <pedestal.h>

Go to the source code of this file.

Functions

static int trigger_button_func (object *op, object *cause, int state)
 
 OBJECT_TYPE_INIT_DEFINE (pedestal)
 
bool pedestal_matches_obj (object *op, object *tmp)
 

Detailed Description

Handles code for pedestals.

Author
Alex Tokar

Definition in file pedestal.c.

Function Documentation

OBJECT_TYPE_INIT_DEFINE ( pedestal  )

Initialize the pedestal type object methods.

Definition at line 74 of file pedestal.c.

bool pedestal_matches_obj ( object op,
object tmp 
)

Check whether pedestal matches the specified object.

Parameters
opPedestal.
tmpObject to check.
Returns
true if the object matches, false otherwise.

Definition at line 91 of file pedestal.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 39 of file pedestal.c.