____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <patch.h>
Public Member Functions | |
| CPatch (CPatchType *type, int x, int y) | |
| ~CPatch () | |
| CPatchType * | getType () const |
| void | setPos (int x, int y) |
| void | setX (int x) |
| int | getX () const |
| void | setY (int y) |
| int | getY () const |
Definition at line 36 of file patch.h.
| CPatch::CPatch | ( | CPatchType * | type, | |
| int | x, | |||
| int | y | |||
| ) | [inline] |
| CPatchType* CPatch::getType | ( | ) | const [inline] |
Get the patch type
Definition at line 57 of file patch.h.
Referenced by PatchSaveButtonListener::action(), DoScroll(), DrawGrids(), CViewport::DrawMapBackgroundInViewport(), DrawPatch(), DrawPatchTileIcons(), GetColor(), CPatchManager::move(), CPatchManager::moveToBottom(), CPatchManager::moveToTop(), PatchEditorCallbackButtonDown(), PatchEditorCallbackMouse(), CPatchManager::remove(), and ShowPatchInfo().
| void CPatch::setPos | ( | int | x, | |
| int | y | |||
| ) | [inline] |
Set the position of the patch
Definition at line 62 of file patch.h.
Referenced by CPatchManager::move().
| void CPatch::setX | ( | int | x | ) | [inline] |
| int CPatch::getX | ( | ) | const [inline] |
Get the X position of the patch
Definition at line 71 of file patch.h.
Referenced by CViewport::DrawMapBackgroundInViewport(), EditorCallbackButtonDown(), CPatchManager::move(), CPatchManager::moveToBottom(), CPatchManager::moveToTop(), CPatchManager::remove(), and ShowPatchInfo().
| void CPatch::setY | ( | int | y | ) | [inline] |
| int CPatch::getY | ( | ) | const [inline] |
Get the Y position of the patch
Definition at line 80 of file patch.h.
Referenced by CViewport::DrawMapBackgroundInViewport(), EditorCallbackButtonDown(), CPatchManager::move(), CPatchManager::moveToBottom(), CPatchManager::moveToTop(), CPatchManager::remove(), and ShowPatchInfo().
1.5.6