|
From: <ce...@us...> - 2003-06-23 00:25:16
|
Update of /cvsroot/devmaster/engine/world_engine
In directory sc8-pr-cvs1:/tmp/cvs-serv27694/world_engine
Added Files:
world_engine.cpp world_engine.h world_object.h
Log Message:
world engine directory
--- NEW FILE: world_engine.cpp ---
//////////////////////////////////////////////////
/*
file: world_object.h
date: 06.22.2003
author: robert "berto" beatty
email: bertobot at cox dot net
LICENSE:
I choose to release this file under the GPL.
you may use this any portion of code freely for non-commercial use
as long as you appropriately cite portions of code used.
*/
//////////////////////////////////////////////////
#include "world_engine.h"
//////////////////////////////////////////////////
// world_engine constructor
world_engine::world_engine()
{
xmin = xmax = ymin = ymax = zmin = zmax = 0.0;
xangle = yangle = zangle = radius = 0.0;
}
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// world_engine destructor
world_engine::~world_engine()
{
}
//////////////////////////////////////////////////
--- NEW FILE: world_engine.h ---
//////////////////////////////////////////////////
/*
file: world_object.h
date: 06.22.2003
author: robert "berto" beatty
email: bertobot at cox dot net
LICENSE:
I choose to release this file under the GPL.
you may use this any portion of code freely for non-commercial use
as long as you appropriately cite portions of code used.
is just a virtual class used to act as a parent class
for the relevant objects in the world.
*/
//////////////////////////////////////////////////
#ifndef __world_engine_h_
#define __world_engine_h_
//////////////////////////////////////////////////
// this is temporary until physics engine is created
#include "world_object.h"
// this, too, is temporary until we move to STL
#include "../include/core/t_list.h"
//////////////////////////////////////////////////
class world_engine : public world_object
{
protected:
// cartesian limits
double
xmin, xmax,
ymin, ymax,
zmin, zmax;
// polar limits
double
xangle, yangle, zangle, radius;
// world objects
t_list<world_object*> objects;
private:
public:
world_engine();
virtual ~world_engine();
};
//////////////////////////////////////////////////
#endif
--- NEW FILE: world_object.h ---
//////////////////////////////////////////////////
/*
file: world_object.h
date: 06.22.2003
author: robert "berto" beatty
email: bertobot at cox dot net
world_object is just a virtual class used to act as a parent class
for the relevant objects in the world.
*/
//////////////////////////////////////////////////
#ifndef __world_object_h_
#define __world_object_h_
//////////////////////////////////////////////////
class world_object
{
public:
// virtual class
world_object() { }
virtual ~world_object() { }
};
//////////////////////////////////////////////////
#endif
|