freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Armour.h
Go to the documentation of this file.
1  /* freg, Free-Roaming Elementary Game with open and interactive world
2  * Copyright (C) 2012-2014 Alexander 'mmaulwurff' Kromm
3  * mmaulwurff@gmail.com
4  *
5  * This file is part of FREG.
6  *
7  * FREG is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * FREG is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with FREG. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #ifndef ARMOURS_H
21 #define ARMOURS_H
22 
23 #include "blocks/Block.h"
24 
25 class Armour : public Block {
26 public:
27  using Block::Block;
28  void Damage(int dmg, int dmg_kind) override;
29  int DamageLevel() const override;
30  QString FullName() const override;
31  wearable Wearable() const override;
32 }; // class Armour
33 
34 class Helmet : public Armour {
35 public:
36  using Armour::Armour;
37  QString FullName() const override;
38  wearable Wearable() const override;
39 }; // class Helmet
40 
41 class Boots : public Armour {
42 public:
43  using Armour::Armour;
44  QString FullName() const override;
45  wearable Wearable() const override;
46 }; // class Boots
47 
48 #endif // ARMOURS_H
wearable Wearable() const override
Definition: Armour.cpp:32
QString FullName() const override
Definition: Armour.cpp:41
int DamageLevel() const override
Definition: Armour.cpp:31
Definition: Armour.h:25
QString FullName() const override
Definition: Armour.cpp:34
QString FullName() const override
Definition: Armour.cpp:48
wearable Wearable() const override
Definition: Armour.cpp:46
wearable Wearable() const override
Definition: Armour.cpp:39
Definition: Armour.h:41
wearable
Definition: Block.h:28
Block(int sub, int kind, int transp=UNDEF)
Definition: Block.cpp:330
Definition: Armour.h:34
void Damage(int dmg, int dmg_kind) override
Definition: Armour.cpp:25
Block without special physics and attributes.
Definition: Block.h:89
Provides definition for class Block.