cassius Posted August 24, 2012 Share Posted August 24, 2012 I got codeblocks up and running last night and see that there is a class wizard somewhere but I can't find it. Can anyone help? If not can someone give me a class decleration example ? maybe a class called actor. I am brushing up on c++ in case I need it for le3.Havn't used it for over 8 years. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Rick Posted August 24, 2012 Share Posted August 24, 2012 I could give you an example but if you are at the point of wondering how to setup a skeleton class you might want to follow some C++ class tutorials. You'll probably get more from them. Quote Link to comment Share on other sites More sharing options...
cassius Posted August 24, 2012 Author Share Posted August 24, 2012 I am hoping to get a le related example. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Rick Posted August 24, 2012 Share Posted August 24, 2012 There really isn't anything LE specific about classes. LE 2 isn't object oriented so it's not as if you are deriving from anything. The person would just have member variables that are LE types that they would want to put into the class. That could be done a million different ways. I don't think this will help much but: class Actor { private: TModel _model; string _name; int _hp; public: virtual void Update()=0; }; I don't have the ctor there, but trying to show you that the class itself isn't related to LE at all. The members inside of it can be LE data types but how you do it is completely up to the individual. Quote Link to comment Share on other sites More sharing options...
Canardia Posted August 24, 2012 Share Posted August 24, 2012 Right click on the project and choose "Add Class", it will do everything for you. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
cassius Posted August 24, 2012 Author Share Posted August 24, 2012 Thanks both. That class example looks much like types in Bmax exept for public and private. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Roland Posted August 24, 2012 Share Posted August 24, 2012 To use the classwizard or LeBuilder as its called now, find it LeBuilder.exe in your SDK folder and start that program. You will see some different project options, but no CodeBlocks. Now go HERE and download the template for CodeBlocks. Once downloaded select Import Template/From Package and select the downloaded zip file. Now will have an option for building CodeBlocks C++ projects. Quote AV MX Linux Link to comment Share on other sites More sharing options...
Rick Posted August 24, 2012 Share Posted August 24, 2012 Hey Roland is there some doc around how to create a template? I love LEBuilder and would love to make my own template that is more object oriented and more of a game template with classes like Actor, Animation, etc to share. Would that be possible with your LEBuilder program to do? I feel like some people might enjoy having a game template setup for them. Quote Link to comment Share on other sites More sharing options...
Mumbles Posted August 24, 2012 Share Posted August 24, 2012 Right click on the project and choose "Add Class", it will do everything for you. Except of course, write your game for you... Thanks both. That class example looks much like types in Bmax exept for public and private. ...and protected. When (or if) you start creating sub-classes, anything marked as private is not usable by the new subclass, whereas protected is usable by the subclass (and obviously public is usable by all) Quote LE Version: 2.50 (Eventually) Link to comment Share on other sites More sharing options...
cassius Posted August 24, 2012 Author Share Posted August 24, 2012 I already used le builder. I have got the spinning cube and the ball game running fine. just needed to find the class wizard plugin. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Roland Posted August 25, 2012 Share Posted August 25, 2012 Hey Roland is there some doc around how to create a template? I love LEBuilder and would love to make my own template that is more object oriented and more of a game template with classes like Actor, Animation, etc to share. Would that be possible with your LEBuilder program to do? I feel like some people might enjoy having a game template setup for them. Here you are Make your own templates for LEBuilder I already used le builder. I have got the spinning cube and the ball game running fine. just needed to find the class wizard plugin. Oh.. sorry. My fault. The project built does not help you with classes, how silly of me. Quote AV MX Linux Link to comment Share on other sites More sharing options...
cassius Posted August 26, 2012 Author Share Posted August 26, 2012 When running the ball game in codeblocks I get 2 errors but the program still runs ok. They appear to be variable outside scope errors.Strange? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.