freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Filter.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 FILTER_H
21 #define FILTER_H
22 
23 #include "Containers.h"
24 
25 class Filter : public Container {
26  Q_OBJECT
27 public:
28  Filter(int kind, int sub);
29  Filter(QDataStream &, int kind, int sub);
30 
31  bool Get(Block * block, int start) override;
32  QString FullName() const override;
33  QString InvFullName(int slot_number) const override;
34 };
35 
36 #endif // FILTER_H
bool Get(Block *block, int start) override
Returns true on success.
Definition: Filter.cpp:43
Container is multi-purpose container for blocks.
Definition: Containers.h:28
Filter(int kind, int sub)
Definition: Filter.cpp:25
QString FullName() const override
Definition: Filter.cpp:33
Definition: Filter.h:25
const quint8 kind
Definition: Block.h:176
const quint8 sub
Definition: Block.h:177
Block without special physics and attributes.
Definition: Block.h:89
QString InvFullName(int slot_number) const override
Definition: Filter.cpp:37