____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <cursor.h>
Public Member Functions | |
| CCursor () | |
Public Attributes | |
| std::string | Ident |
| Identifier to reference it. | |
| int | HotX |
| Hot point x. | |
| int | HotY |
| Hot point y. | |
| int | SpriteFrame |
| Current displayed cursor frame. | |
| int | FrameRate |
| Rate of changing the frames. | |
| CGraphic * | G |
| Cursor sprite image. | |
#include "cursor.h"
This structure contains all informations about a cursor. The cursor changes depending of the current user input state. A cursor can have transparent areas and color cycle animated.
The cursor-type structure members:
Unique identifier of the cursor, used to reference it in config files and during startup. Don't use this in game, use instead the pointer to this structure.
Hot spot of the cursor in pixels. Relative to the sprite origin (0,0). The hot spot of a cursor is the point to which Stratagus refers in tracking the cursor's position.
Current displayed cursor frame. From 0 to CCursor::G::NumFrames.
Rate of changing the frames. The "rate" tells the engine how many milliseconds to hold each frame of the animation.
Contains the sprite of the cursor, loaded from CCursor::File. This can be a multicolor image with alpha or transparency.
Definition at line 115 of file cursor.h.
| std::string CCursor::Ident |
| int CCursor::HotX |
| int CCursor::HotY |
Current displayed cursor frame.
Definition at line 125 of file cursor.h.
Referenced by CursorAnimate(), and DrawCursor().
Rate of changing the frames.
Definition at line 126 of file cursor.h.
Referenced by CursorAnimate().
Cursor sprite image.
Definition at line 130 of file cursor.h.
Referenced by CursorAnimate(), and DrawCursor().
1.5.6