Freeciv21
Develop your civilization from humble roots to a global empire
capability.h
Go to the documentation of this file.
1
/**************************************************************************
2
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3
__ __ part of Freeciv21. Freeciv21 is free software: you can
4
/ \\..// \ redistribute it and/or modify it under the terms of the GNU
5
( oo ) General Public License as published by the Free Software
6
\__/ Foundation, either version 3 of the License, or (at your
7
option) any later version. You should have received
8
a copy of the GNU General Public License along with Freeciv21. If not,
9
see https://www.gnu.org/licenses/.
10
**************************************************************************/
11
12
#pragma once
13
14
bool
has_capability
(
const
char
*cap,
const
char
*capstr);
15
bool
has_capabilities
(
const
char
*us,
const
char
*them);
has_capability
bool has_capability(const char *cap, const char *capstr)
Wrapper for fc_has_capability() for nullptr terminated strings.
Definition:
capability.cpp:71
has_capabilities
bool has_capabilities(const char *us, const char *them)
This routine returns true if all the mandatory capabilities in us appear in them.
Definition:
capability.cpp:80
utility
capability.h
Generated by
1.9.1