Atrinik Server  4.0
Functions | Variables
painting.c File Reference
#include <global.h>
#include <object_methods.h>
#include <object.h>
#include <resources.h>
#include <artifact.h>
#include <player.h>
#include <toolkit/packet.h>
#include "common/process_treasure.h"

Go to the source code of this file.

Functions

static int apply_func (object *op, object *applier, int aflags)
 
static int process_treasure_func (object *op, object **ret, int difficulty, treasure_affinity_t *affinity, int flags)
 
 OBJECT_TYPE_INIT_DEFINE (painting)
 

Variables

static const char *const painting_message_decipher
 

Detailed Description

Handles code for paintings.

Author
Alex Tokar

Definition in file painting.c.

Function Documentation

static int apply_func ( object op,
object applier,
int  aflags 
)
static

Applies an object.

Parameters
opThe object to apply.
applierThe object that executes the apply action.
aflagsSpecial (always apply/unapply) flags.

Definition at line 51 of file painting.c.

OBJECT_TYPE_INIT_DEFINE ( painting  )

Initialize the pants type object methods.

Definition at line 125 of file painting.c.

static int process_treasure_func ( object op,
object **  ret,
int  difficulty,
treasure_affinity_t *  affinity,
int  flags 
)
static

Process generated treasure.

Parameters
opObject to process.
[out]retIf the function returns OBJECT_METHOD_OK, this variable will contain the processed treasure object, which may be different from 'op' (which may be destroyed). Indeterminate on any other return value.
difficultyDifficulty level.
affinityTreasure affinity.
flagsA combination of GT_xxx flags.
Returns
One of Object method return values.
Warning
If OBJECT_METHOD_ERROR is returned from this function, it is possible that the original object has been destroyed and thus any further processing should stop.

Definition at line 97 of file painting.c.

Variable Documentation

const char* const painting_message_decipher
static
Initial value:
=
"[i][b]<You are unable to decipher the strange runes inscribed upon the "
"frame of the painting...>[/b][/i]"

Message used in the painting UI when the painting is not identified.

Definition at line 45 of file painting.c.