Class Tile

Inheritance Relationships

Base Type

  • public Node3D

Derived Types

Class Documentation

class Tile : public Node3D

Subclassed by sota::OffsetTile, sota::PolyhedronTile

Public Functions

Tile() = default
Tile(const Tile &other) = delete
Tile(Tile &&other) = delete
Tile &operator=(Tile &&other) = delete
Tile(Ref<TileMesh> mesh, Node3D *parent)
Ref<TileMesh> mesh() const
inline int id() const
inline void destroy()
inline void replace_mesh(Ref<TileMesh> new_mesh)
void set_neighbours(Neighbours neighbours)
void remove_neighbour(RidgeMesh *neighbour)
Neighbours neighbours() const

Protected Functions

virtual void handle_input_event(Camera3D *p_camera, const Ref<InputEvent> &p_event, const Vector3 &p_event_position, const Vector3 &p_normal, int32_t p_shape_idx) = 0
virtual void handle_mouse_entered() = 0
virtual void handle_mouse_exited() = 0

Protected Attributes

StaticBody3D *_static_body = {nullptr}
Ref<SphereShape3D> _sphere_shaped3d = {nullptr}
Ref<TileMesh> _mesh
MeshInstance3D *_main_mesh_instance = {nullptr}

Protected Static Functions

static inline void _bind_methods()