X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_enti.h;h=57fc24c93c29a833d4ca1f4e0a72ff0d2547c376;hb=a565be31ce92d6168ae6983042da75b0b683e52b;hp=17ee10fae9a000436b6387d6b0f58132ed6472d5;hpb=5b5b1d33f20e21199c68d46ae023f26370f1219b;p=16.git diff --git a/src/lib/16_enti.h b/src/lib/16_enti.h index 17ee10fa..57fc24c9 100755 --- a/src/lib/16_enti.h +++ b/src/lib/16_enti.h @@ -1,25 +1,50 @@ +/* Project 16 Source Code~ + * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + #ifndef __16_NPC__ #define __16_NPC__ -#include "src/lib/16_sprit.h" #include "src/lib/16_head.h" +#include "src/lib/16_spri.h" #include "src/lib/16_in.h" +//moved to 16_tdef.h +// typedef struct +// { +// int x; // exact position on the viewable map +// int y; // exact position on the viewable map +// int tx; // tile position on the viewable map +// int ty; // tile position on the viewable map +// int triggerx; // trigger box tile position on the viewable map +// int triggery; // trigger box tile position on the viewable map +// byte d; // direction the NPC faces +// struct sprite *spri; // sprite used by NPC +// sword hp; // hitpoints of the NPC +// byte near pdir; // previous direction~ +// word speed; // NPC's speed +// word spt; // speed per tile +// } entity_t; -typedef struct -{ - int x; // exact position on the viewable map - int y; // exact position on the viewable map - int tx; // tile position on the viewable map - int ty; // tile position on the viewable map - int triggerx; // trigger box tile position on the viewable map - int triggery; // trigger box tile position on the viewable map - byte d; // direction the NPC faces - struct sprite *spri; // sprite used by NPC - sword hp; // hitpoints of the NPC - byte near pdir; // previous direction~ - word speed; // NPC's speed - word spt; // speed per tile -} entity_t; +void EN_initentity(entity_t *enti, video_t *video); +void EN_initPlayer(player_t *player, video_t *video); #endif