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

Go to the source code of this file.

Functions

static void init_func (object *op)
 
static void deinit_func (object *op)
 
 OBJECT_TYPE_INIT_DEFINE (magic_mirror)
 
mapstructmagic_mirror_get_map (object *op)
 

Detailed Description

Handles code for magic mirrors.

Magic mirrors are objects that mirror contents of another tile, effectively creating a map stacking effect. It is also possible to make the magic mirrors zoom out/in mirrored objects to create a depth effect.

Author
Alex Tokar

Definition in file magic_mirror.c.

Function Documentation

static void deinit_func ( object op)
static

De-initializes an object.

Parameters
opThe object to de-initialize.

Definition at line 91 of file magic_mirror.c.

static void init_func ( object op)
static

Initializes an object.

Parameters
opThe object to initialize.

Definition at line 44 of file magic_mirror.c.

mapstruct* magic_mirror_get_map ( object op)

Get map to which a magic mirror is pointing to. Almost always this should be used instead of accessing magic_mirror_struct::map directly, as it will make sure the map is loaded and will reset the swap timeout.

Parameters
opMagic mirror to get map of.
Returns
The map. Can be NULL in case of loading error.

Definition at line 121 of file magic_mirror.c.

OBJECT_TYPE_INIT_DEFINE ( magic_mirror  )

Initialize the magic mirror type object methods.

Definition at line 104 of file magic_mirror.c.