Atrinik Server  4.0
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.


static void init_func (object *op)
static void deinit_func (object *op)
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.

Alex Tokar

Definition in file magic_mirror.c.

Function Documentation

static void deinit_func ( object op)

De-initializes an object.

opThe object to de-initialize.

Definition at line 91 of file magic_mirror.c.

static void init_func ( object op)

Initializes an object.

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.

opMagic mirror to get map of.
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.