My Project
 
Loading...
Searching...
No Matches
golem.h
Go to the documentation of this file.
1#pragma once
2
3#include "mob.h"
4
5class Golem :public Mob{
6public:
7 virtual CharSprite* Sprite();
8 virtual std::string getClassName(){ return "Golem"; }
9 static Mob* CreateGolem();
10
11 Golem();
12
13 virtual int damageRoll();
14
15 virtual int attackSkill(Char* target) { return 28; }
16 virtual int dr() { return 12; }
17 virtual std::string defenseVerb() { return "blocked"; }
18 virtual void die(const std::string& cause);
19 virtual std::string description() {
20 return
21 std::string("The Dwarves tried to combine their knowledge of mechanisms with their newfound power of elemental binding. ") +
22 std::string("They used spirits of earth as the \"soul\" for the mechanical bodies of golems, which were believed to be ") +
23 std::string("most controllable of all. Despite this, the tiniest mistake in the ritual could cause an outbreak.");
24 }
25protected:
26 virtual float attackDelay() { return 1.5f; }
27};
Char()
Definition char.cpp:34
Definition charsprite.h:13
Golem()
Definition golem.cpp:14
static Mob * CreateGolem()
Definition golem.cpp:9
virtual void die(const std::string &cause)
Definition golem.cpp:31
virtual std::string description()
Definition golem.h:19
virtual float attackDelay()
Definition golem.h:26
virtual std::string defenseVerb()
Definition golem.h:17
virtual int attackSkill(Char *target)
Definition golem.h:15
virtual std::string getClassName()
Definition golem.h:8
virtual int dr()
Definition golem.h:16
virtual CharSprite * Sprite()
Definition golem.cpp:4
virtual int damageRoll()
Definition golem.cpp:26
Definition mob.h:9
int target
Definition mob.h:58
Mob()
Definition mob.cpp:17