- Joined
- Mar 3, 2006
- Messages
- 1,564
I don't care what goes behind the scene when you enter something like that:
Is car an object ?
wheel is a member of the struct 'car', is it called a class ?
Ofc, there is no variable of type wheel so the integer 'Number_Of_Bolts' is this a class or what ?
If car is an object it surely must have methods and properties, methods affect properties and vice verse. Is this line right to change direction property of the car:
And if I have a line like that:
Is it possible for thistype to take "." ? Also how is it possible to add the brackets "thistype(id)" ???
set l = this.x
to be converted to this set l = x[this]
JASS:
struct car
public wheel front_left
public wheel front_right
public wheel rear_left
public wheel rear_right
private engine VG30DETT
private integer Number_Of_Bolts
public direction whichDirection
method steering takes nothing returns direction
return this.direction
endmethod
endstruct
wheel is a member of the struct 'car', is it called a class ?
Ofc, there is no variable of type wheel so the integer 'Number_Of_Bolts' is this a class or what ?
If car is an object it surely must have methods and properties, methods affect properties and vice verse. Is this line right to change direction property of the car:
return this.direction
And if I have a line like that:
set thistype(id).inCombatV = false
Is it possible for thistype to take "." ? Also how is it possible to add the brackets "thistype(id)" ???