Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why not possible to create point variable in class?
#1
Today just faced strange bug, because of which you cant create variable with Colobot's type point with parameters, "Type declaration missing" it said me, so i suppose its just dont know whether i creating variable or function which must return some point variable. Example:

 point ma_point(322, 228, 6);


Create empty point and then assign it manually also not possible.

P.S. don't advice me please create all point variables in constructor, there is already alot of stuff which every bot needed, not wise would be create points every time new bot comes in to the class.
Reply
#2
I'm pretty sure the correct syntax to use would be
Code:
point ma_point = new point(322, 228, 6);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)