typedef struct _cursor_type_ CursorType;
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.
In the future it is planned to support animated cursors.
The cursor-type structure members:
Object type (future extensions).
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.
Owning Race of this cursor ("human", "orc", "alliance", "mythical", ...). If NULL, this cursor could be used by any race.
File containing the image graphics of the cursor.
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 FreeCraft refers in tracking the cursor's position.
Size of the cursor in pixels.
Current displayed cursor frame. From 0 to CursorType::Graphic::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 CursorType::File. This can be a multicolor image with alpha or transparency.
|Race name. |
|Current displayed cursor frame. |
|Width of cursor. |
|Graphic file of the cursor. |
|Hot point x. |
|Object type (future extensions). |
|const void *||OType|
|Identifier to reference it. |
|Rate of changing the frames. |
|Height of cursor. |
|Hot point y. |