X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=romance.c;fp=romance.c;h=70a06a1aa179f9f756426cafb8e9562e03706607;hp=0000000000000000000000000000000000000000;hb=5cb6d6a6b0531aada9712c5e37c59cd930c527c4;hpb=7bee0dea66d5b5a2112d2e69d4547128d56abf0c diff --git a/romance.c b/romance.c new file mode 100644 index 0000000..70a06a1 --- /dev/null +++ b/romance.c @@ -0,0 +1,33 @@ +/* + * Functions for dealing with problems of the heart + * + * @(#)romance.c 3.2 (Berkeley) 6/15/81 + * + * Rogue: Exploring the Dungeons of Doom + * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman + * All rights reserved. + * + * See the file LICENSE.TXT for full copyright and licensing information. + */ + +#include "curses.h" +#include +#include +#include "rogue.h" + +/* + * flirt: + * Make eyes in the given direction + */ + +flirt(ydelta, xdelta) +int ydelta, xdelta; +{ + register struct linked_list *item, *nitem; + struct object obj; + + obj.o_pos = hero; + obj.o_type = '~'; + do_motion(&obj, ydelta, xdelta); + mvwaddch(cw, hero.y, hero.x, PLAYER); +}