I am trying To access a variable in a user defined Type from another user defined type.
Specifically a VehicleType Field must access the TileType Field To determine If the vehicle can enter a Tile (See simplified code below).
Type Tiles
Field TileType:Int [25, 20]
End Type
Type Vehicle
Field VehicleType:Int
End Type
Here is what I am attempting To do
If Tiles.TileType <> 1 Then
MoveVehicle()
End If
MoveVehicle() is a Method of Type Vehicle
Please give your solution using code.
Thank you For your help in this matter.
Specifically a VehicleType Field must access the TileType Field To determine If the vehicle can enter a Tile (See simplified code below).
Type Tiles
Field TileType:Int [25, 20]
End Type
Type Vehicle
Field VehicleType:Int
End Type
Here is what I am attempting To do
If Tiles.TileType <> 1 Then
MoveVehicle()
End If
MoveVehicle() is a Method of Type Vehicle
Please give your solution using code.
Thank you For your help in this matter.