confusion

Blitz3D Forums/Blitz3D Programming/confusion

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Types
=====
This was hard to get my head around, and although I think I understand it not sure I can explain it!! Hopefully someone better will help out, but here are a few pointers. I will explain them how I (thats ME) understands them).

A TYPE is a collection of fields. Each FIELD is a variable and can be an integer, float or string. You access fields as typename\fieldname.

The 'p' and 'player1' are both variables or handles pointing to a 'Player' TYPE object/collection. They could both be pointing to the same object or different ones.

'Field entity' is a variable named 'entity' within your type. The 'entity' has no special meaning and is probably used as a handle to a real entity.

Rhy