abstract class FindingMaya::Entity
- FindingMaya::Entity
- Reference
- Object
Direct Known Subclasses
Defined in:
entity.crConstructors
Instance Method Summary
- #collision? : Bool
- #description : String
- #draw
-
#interact
This method is called when the player interacts with the entity.
- #name : String
-
#rectangle : Raylib::Rectangle
rectangle
- #update(x : Int32, y : Int32)
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)
Constructor Detail
def self.new(name : String, description : String, x : Int32, y : Int32, texture : Raylib::Texture2D, collision : Bool = true)
#
Instance Method Detail
abstract
def interact
#
This method is called when the player interacts with the entity. It should be overridden by subclasses.