Debian Codegraph @

src/plan/KeyDesc.cpp

raw
1 /*
2 * Copyright (C) 2004 Ivo Danihelka ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9 #include "KeyDesc.h"
10
11 //-----------------------------------------------------------------
12 /**
13 * Create new key description.
14 * @param index key index should be unique in one GameState
15 * @param desc text description
16 */
17 KeyDesc::KeyDesc(int index, const std::string &desc)
18 : m_desc(desc)
19 {
20 m_index = index;
21 }
22