what is wrong with my bgt class?

Hi. So I built a class in bgt, and have a constructor like this. It's a stupid example that makes no sense but who cares.

car(int wheels,string model,bool running)
{
wheels=this.wheels;
model=this.model;
running=this.running;
}

The class itself works fine, but when I add a new car, the number of wheels is always 0.

cars.insert_last(car(4,normal,true));

Why is the number of wheels always 0? I haven't tested the other 2 variables, but the main one I want to test is wheels for now.



-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector

Reply via email to