Skip to content
This repository
tree: 76ef3446ae
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 50 lines (44 sloc) 0.84 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#ifndef _MONGROUP_H_
#define _MONGROUP_H_

#include "mtype.h"
#include <vector>

enum moncat_id {
 mcat_null = 0,
 mcat_forest,
 mcat_ant,
 mcat_bee,
 mcat_worm,
 mcat_zombie,
 mcat_triffid,
 mcat_fungi,
 mcat_goo,
 mcat_chud,
 mcat_sewer,
 mcat_swamp,
 mcat_lab,
 mcat_nether,
 mcat_spiral,
 mcat_vanilla_zombie, // Defense mode only
 mcat_spider, // Defense mode only
 mcat_robot, // Defense mode only
 num_moncats
};

bool moncat_is_safe(moncat_id id);

struct mongroup {
 moncat_id type;
 int posx, posy;
 unsigned char radius;
 unsigned int population;
 bool dying;
 mongroup(moncat_id ptype, int pposx, int pposy, unsigned char prad,
          unsigned int ppop) {
  type = ptype;
  posx = pposx;
  posy = pposy;
  radius = prad;
  population = ppop;
  dying = false;
 }
 bool is_safe() { return moncat_is_safe(type); };
};

#endif
Something went wrong with that request. Please try again.