This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
2023-03-31 03:19:04 +00:00
|
|
|
package tomo
|
2023-02-02 06:47:01 +00:00
|
|
|
|
2023-05-03 23:40:30 +00:00
|
|
|
import "tomo/artist"
|
2023-02-02 06:47:01 +00:00
|
|
|
|
2023-04-29 18:23:21 +00:00
|
|
|
// Element represents a basic on-screen object. Extended element interfaces are
|
|
|
|
// defined in the ability module.
|
2023-02-02 06:47:01 +00:00
|
|
|
type Element interface {
|
2023-04-13 03:21:34 +00:00
|
|
|
// Draw causes the element to draw to the specified canvas. The bounds
|
|
|
|
// of this canvas specify the area that is actually drawn to, while the
|
|
|
|
// Entity bounds specify the actual area of the element.
|
2023-04-30 05:27:04 +00:00
|
|
|
Draw (artist.Canvas)
|
2023-04-15 05:14:36 +00:00
|
|
|
|
|
|
|
// Entity returns this element's entity.
|
|
|
|
Entity () Entity
|
2023-02-02 06:47:01 +00:00
|
|
|
}
|