Beispiel #1
0
/*
 * Place some traps with a given displacement of given location
 */
void vault_traps(int y, int x, int yd, int xd, int num)
{
    int i;

    for (i = 0; i < num; i++)
    {
        vault_trap_aux(y, x, yd, xd);
    }
}
Beispiel #2
0
/**
 * Place 'num' traps near (x, y), with a given displacement.
 * \param c the current chunk
 * \param y co-ordinates to place the trap near
 * \param x co-ordinates to place the trap near
 * \param yd how far afield to look for a place
 * \param xd how far afield to look for a place
 * \param num number of traps to place
 */
void vault_traps(struct chunk *c, int y, int x, int yd, int xd, int num)
{
    int i;
    for (i = 0; i < num; i++)
		vault_trap_aux(c, y, x, yd, xd);
}