abstract class FindingMaya::Entity

Direct Known Subclasses

Defined in:

entity.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String, x : Int32, y : Int32, texture : Raylib::Texture2D, collision : Bool = true) #

[View source]

Instance Method Detail

def collision? : Bool #

[View source]
def description : String #

[View source]
def draw #

[View source]
abstract def interact #

This method is called when the player interacts with the entity. It should be overridden by subclasses.


[View source]
def name : String #

[View source]
def rectangle : Raylib::Rectangle #

rectangle


[View source]
def update(x : Int32, y : Int32) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]