;;-----------------------------LICENSE NOTICE------------------------------------
;;  This file is part of Viking Hangover
;;  Copyright (C) 2021 Ahmed Begga / Érika Moreno / Adriana Morejón (@ComputosGame)
;;
;;  This program is free software: you can redistribute it and/or modify
;;  it under the terms of the GNU Lesser General Public License as published by
;;  the Free Software Foundation, either version 3 of the License, or
;;  (at your option) any later version.
;;
;;  This program is distributed in the hope that it will be useful,
;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;  GNU Lesser General Public License for more details.
;;
;;  You should have received a copy of the GNU Lesser General Public License
;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
;;-------------------------------------------------------------------------------

;;=======================
;;=======================
;;  ENTITY MANAGER
;;=======================
;;=======================

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;                      Const                            ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
entity_size=29 
entity_array_size=40
entity_array_bytes_size=entity_size*entity_array_size
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;                      Index                            ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e_type=0
e_x=1
e_y=2
e_vx=3
e_vy=4
e_w=5
e_h=6
e_ia2=7
e_ia1=8
e_coli2=9
e_coli1=10
e_phy2=11
e_phy1=12
e_sprite2=13
e_sprite1=14
e_prevPos2=15
e_prevPos1=16
e_score=17
e_subType=18
e_anime2=19
e_anime1=20
e_count_anime=21
e_current_anime=22
e_currentpos2=23
e_currentpos1=24
e_count_ia=25
e_w2rmv=26
e_h2rmv=27
e_movement_ia=28
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;                      Types                            ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
e_cmp_invalid=0x00
e_cmp_render=0x01
e_cmp_mov=0x02
e_cmp_input=0x04
e_cmp_ia=0x08
e_cmp_colision=0x10
e_cmp_colide=0x20
e_cmp_anime=0x40
e_cmp_dead=0x80
e_cmp_default=0x7f

type_shot=0x01 
type_bottle=0x02
type_static=0x04
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;                      Public functions                 ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.globl man_entity_init
.globl man_entity_create
.globl man_entity_destroy
.globl man_entity_set4_destroy
.globl man_entity_destroy_dead
.globl man_entity_forall
.globl man_entity_forall_match

