X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects.h;h=a5783743fb87aed1bcf6b114cdcc952542df29b0;hb=cd043e3f9e26c2b3406b40a354c2840941e9db7f;hp=a73d670f74244ce2c5337534479a5893f0feb2cb;hpb=8562aa5bebc97ea8a61d056aec3847030c6985b7;p=lugaru.git
diff --git a/Source/Objects.h b/Source/Objects.h
index a73d670..a578374 100644
--- a/Source/Objects.h
+++ b/Source/Objects.h
@@ -1,3 +1,22 @@
+/*
+Copyright (C) 2003, 2010 - Wolfire Games
+
+This file is part of Lugaru.
+
+Lugaru 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 2 of the License, or
+(at your option) any later version.
+
+Lugaru 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 Lugaru. If not, see .
+*/
+
#ifndef _OBJECTS_H_
#define _OBJECTS_H_
@@ -9,7 +28,8 @@
#include "Lights.h"
#include "Models.h"
#include "Terrain.h"
-#include "Sprites.h"
+#include "Sprite.h"
+#include "Texture.h"
#include
//
// Model Structures
@@ -32,46 +52,48 @@
#define firetype 13
-class Objects{
+class Objects
+{
public:
- XYZ center;
- float radius;
- XYZ position[max_objects];
- int type[max_objects];
- float rotation[max_objects];
- float rotation2[max_objects];
- float rotx[max_objects];
- float rotxvel[max_objects];
- float roty[max_objects];
- float rotyvel[max_objects];
- int numobjects;
- bool possible[max_objects];
- Model model[max_objects];
- Model displaymodel[max_objects];
- float friction[max_objects];
- float scale[max_objects];
- float messedwith[max_objects];
- float checked[max_objects];
- GLuint boxtextureptr;
- GLuint treetextureptr;
- GLuint bushtextureptr;
- GLuint rocktextureptr;
- float shadowed[max_objects];
- float occluded[max_objects];
- bool checkcollide(XYZ startpoint, XYZ endpoint,int which);
- bool onfire[max_objects];
- float flamedelay[max_objects];
+ XYZ center;
+ float radius;
+ XYZ position[max_objects];
+ int type[max_objects];
+ float yaw[max_objects];
+ float pitch[max_objects];
+ float rotx[max_objects];
+ float rotxvel[max_objects];
+ float roty[max_objects];
+ float rotyvel[max_objects];
+ int numobjects;
+ bool possible[max_objects];
+ Model model[max_objects];
+ Model displaymodel[max_objects];
+ float friction[max_objects];
+ float scale[max_objects];
+ float messedwith[max_objects];
+ float checked[max_objects];
+ Texture boxtextureptr;
+ Texture treetextureptr;
+ Texture bushtextureptr;
+ Texture rocktextureptr;
+ float shadowed[max_objects];
+ float occluded[max_objects];
+ bool checkcollide(XYZ startpoint, XYZ endpoint, int which);
+ bool onfire[max_objects];
+ float flamedelay[max_objects];
- void SphereCheckPossible(XYZ *p1,float radius);
- void DeleteObject(int which);
- void MakeObject(int atype, XYZ where, float arotation, float ascale);
- void MakeObject(int atype, XYZ where, float arotation, float arotation2, float ascale);
- void Draw();
- void DoShadows();
- void DoStuff();
+ void SphereCheckPossible(XYZ *p1, float radius);
+ void DeleteObject(int which);
+ void MakeObject(int atype, XYZ where, float ayaw, float ascale);
+ void MakeObject(int atype, XYZ where, float ayaw, float apitch, float ascale);
+ void Draw();
+ void DoShadows();
+ void DoStuff();
- Objects();
- ~Objects();
+ Objects();
+ ~Objects();
};
#endif
+