;MIT License

;Copyright (c) 2021 Fedora Adventures Pixeltronics

;Permission is hereby granted, free of charge, to any person obtaining a copy
;of this software and associated documentation files (the "Software"), to deal
;in the Software without restriction, including without limitation the rights
;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;copies of the Software, and to permit persons to whom the Software is
;furnished to do so, subject to the following conditions:

;The above copyright notice and this permission notice shall be included in all
;copies or substantial portions of the Software.

;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
;SOFTWARE.
;;archivo de cabecera para hacer include de las funciones
;;
.globl _fedora_sprites_00
.globl _fedora_sprites_01

entity_size = 17
max_entities = 30
;;Constantes para definir en que byte está cada dato
;; Nuestros datos de cada entidad son:
;; Com
e_cmps = 0
e_cmps_physics = 1
e_h = 2
e_w = 3
e_vx = 4
e_vy = 5
e_altura_salto = 6
e_maxy = 7
;e_color = 10
e_ptr_sprite = 8 ;; esto usa 2 bytes
e_prev_ptr = 10  ;; puntero 2 bytes
e_movimiento1 = 12
e_movimiento2 = 13
e_movimiento3 = 14
e_x = 15
e_y = 16

e_cmps_alive = 0x80
e_cmps_render = 0x40
e_cmps_player = 0x20
e_cmps_door = 0x10
e_cmps_treasure = 0x08
e_cmps_platform = 0x04

e_cmps_phy_left = 0x80
e_cmps_phy_right = 0x40
e_cmps_phy_jumping = 0x20
e_cmps_phy_falling = 0x10



;;FUNCIONES PUBLICAS
.globl getEntityInArray
.globl getNumEntities
.globl create_entity
.globl man_entity_put_player_in_ix
.globl man_entity_put_platforms_in_iy
.globl man_entity_put_treasure_in_iy
.globl man_entity_put_door_in_iy
.globl man_entity_reset
.globl man_entity_init
.globl man_map_init
.globl create_entity_1
.globl create_entity_2
;;CONSTANTES
.globl entity_size
.globl max_entities
.globl e_cmps
.globl e_cmps_physics
.globl e_h
.globl e_w
.globl e_x
.globl e_y
.globl e_vx
.globl e_vy
.globl e_altura_salto
.globl e_maxy
;.globl e_color
.globl e_ptr_sprite
.globl e_cmps_alive
.globl e_cmps_render
.globl e_cmps_phy_left
.globl e_cmps_phy_right
.globl e_cmps_phy_jumping
.globl e_cmps_phy_falling
.globl e_movimiento1
.globl e_movimiento2
.globl e_movimiento3

