22#ifndef QDENGINE_QDCORE_QD_GAME_OBJECT_STATIC_H
23#define QDENGINE_QDCORE_QD_GAME_OBJECT_STATIC_H
25#include "qdengine/qdcore/qd_sprite.h"
26#include "qdengine/qdcore/qd_game_object.h"
37 return QD_NAMED_OBJECT_STATIC_OBJ;
43 qdSprite *get_sprite() {
47 void redraw(
int offs_x = 0,
int offs_y = 0)
const;
48 void debug_redraw()
const { }
49 void draw_contour(uint32 color)
const;
50 void draw_shadow(
int offs_x,
int offs_y, uint32 color,
int alpha)
const { }
52 bool load_script(
const xml::tag *p);
59 bool load_resources();
60 void free_resources();
62 Vect2s screen_size()
const {
63 return Vect2s(_sprite.size_x(), _sprite.size_y());
66 bool hit(
int x,
int y)
const;
70 bool load_script_body(
const xml::tag *p);
mouseEvent
События.
Definition: mouse_input.h:41
Базовый класс для игровых объектов.
Definition: qd_game_object.h:53
Definition: qd_game_object_static.h:31
int named_object_type() const
Возвращает тип объекта.
Definition: qd_game_object_static.h:36
Спрайт.
Definition: qd_sprite.h:39
Базовый класс для игровых ресурсов.
Definition: console.h:28