#ifndef BROWNIANH #define BROWNIANH #include #include "wabbit.h" using namespace std; class brownian: protected virtual wabbit { void decide(int *dx, int *dy) const { *dx = rand() % 3 - 1; *dy = rand() % 3 - 1; } public: brownian(game *initial_g, unsigned initial_x, unsigned initial_y, char initial_c) : wabbit(initial_g, initial_x, initial_y, initial_c) {} }; #endif