From bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 14 Apr 2002 17:08:03 +0000 Subject: Import of kbill --- (limited to 'noncore/games/kbill/Computer.cc') diff --git a/noncore/games/kbill/Computer.cc b/noncore/games/kbill/Computer.cc new file mode 100644 index 0000000..7bd4bd3 --- a/dev/null +++ b/noncore/games/kbill/Computer.cc @@ -0,0 +1,56 @@ +#include "objects.h" + +int Computer::setup(int i) { + int j, counter=0, flag; + do { + if (++counter>4000) return 0; + x = game.RAND(BORDER, game.scrwidth - BORDER - net.width); + y = game.RAND(BORDER, game.scrheight - BORDER - net.height); + flag=1; + /*checks for conflicting computer placement*/ + for (j=0; j=PC && system>=OS.PC)); +} + +int Computer::determineOS() { + if (type