|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static int | can_build_over (mapstruct *m, object *new_item, int x, int y) |
| static object * | get_wall (mapstruct *m, int x, int y) |
| static int | builder_floor (object *op, object *new_floor, int x, int y) |
| static int | builder_item (object *op, object *new_item, int x, int y) |
| static int | wall_split_orientation (const object *wall_ob, char *wall_name, size_t wall_name_size, char *orientation, size_t orientation_size) |
| static void | fix_walls (mapstruct *map, int x, int y) |
| static int | builder_wall (object *op, object *new_wall, int x, int y) |
| static int | builder_window (object *op, int x, int y) |
| static void | construction_builder (object *op, int x, int y) |
| static void | construction_destroyer (object *op, int x, int y) |
| void | construction_do (object *op, int dir) |
Handles code for the construction skill.
Definition in file construction.c.
Floor building function.
| op | Player building. |
| new_floor | New floor object |
| x | X where to build. |
| y | Y where to build. |
Definition at line 105 of file construction.c.
Build an item like sign, wall mask (fireplace), etc.
| op | Player building. |
| new_item | What to build. |
| x | X where to build. |
| y | Y where to build. |
Definition at line 146 of file construction.c.
Build a wall.
| op | Player building. |
| new_wall | New wall object. |
| x | X where to build. |
| y | Y where to build. |
Definition at line 391 of file construction.c.
| static int builder_window | ( | object * | op, |
| int | x, | ||
| int | y | ||
| ) | [static] |
Window building function.
| op | Player building. |
| x | X where to build. |
| y | Y where to build. |
Definition at line 458 of file construction.c.
Check if objects on a square interfere with building.
| m | Map we're building on. |
| new_item | Item the player is trying to build. |
| x | X coordinate where to build. |
| y | Y coordinate where to build. |
Definition at line 39 of file construction.c.
| static void construction_builder | ( | object * | op, |
| int | x, | ||
| int | y | ||
| ) | [static] |
Generic function for handling the construction builder skill item.
| op | Player building. |
| x | X where to build. |
| y | Y where to build. |
Definition at line 528 of file construction.c.
| static void construction_destroyer | ( | object * | op, |
| int | x, | ||
| int | y | ||
| ) | [static] |
Item remover.
Removes first buildable item except floor.
| op | Player removing an item. |
| x | X Where to remove. |
| y | Y where to remove. |
Definition at line 606 of file construction.c.
| void construction_do | ( | object * | op, |
| int | dir | ||
| ) |
Main point of construction skill. From here, we decide what to do with skill item we have equipped.
| op | Player. |
Definition at line 662 of file construction.c.
| static void fix_walls | ( | mapstruct * | map, |
| int | x, | ||
| int | y | ||
| ) | [static] |
Fixes walls around specified spot
Basically it ensures the correct wall is put where needed.
| map | Map where to fix. |
| x | X where to fix. |
| y | Y where to fix. |
Definition at line 277 of file construction.c.
Find wall on the specified square.
| m | Map where to look. |
| x | X where to look. |
| y | Y where to look. |
Definition at line 83 of file construction.c.
| static int wall_split_orientation | ( | const object * | wall_ob, |
| char * | wall_name, | ||
| size_t | wall_name_size, | ||
| char * | orientation, | ||
| size_t | orientation_size | ||
| ) | [static] |
Split wall's name from the orientation.
| wall | Wall to get the name with orientation from. |
| wall_name | Where the wall's name will go. |
| wall_name_size | Size of 'wall_name'. |
| orientation | Where the wall's orientation will go. |
| orientation_size | Size of 'orientation'. |
Definition at line 248 of file construction.c.
1.7.4