Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / What would an "Entity" be classed as.

Author
Message
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 30th Nov 2007 22:54
As far as i know, in terms of game development, it is one item which represents a mixture of meshes, sounds, materials, lights and scripts. Am i correct?

-General Reed

CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Dec 2007 01:38
I'm not entirelly sure, but this is how I would put it:

You can imagine lots of classes, such as Object, Sound, Light, etc, and they would all be a sub-class of an Entity class, and that class might contain functions to position, rotate, scale, etc, which the sub-classes would inherit from.

If it was in an OO scenario, might look like this:



I believe in Blitz3D it's done something like this:


Dont quote me on the syntax though...

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 1st Dec 2007 18:55
Thanks o doom. lol

CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb

Login to post a reply

Server time is: 2024-11-19 15:20:32
Your offset time is: 2024-11-19 15:20:32