If it's relevant to Futurecraft, it goes here.
Forum rules
- This area is for general discussion; ideas and ships go elsewhere. Offending threads will be removed without prior notice.
- Unnecessary topics will be deleted or locked without warning.
-
Dux_Tell31
- Midshipman

- Posts:100
- Joined:Thu Dec 06, 2012 12:22 pm
- Affiliation:Tellrim
- IGN:tell31
DuxTell's Programming Resources
Post
by Dux_Tell31 » Tue Jan 14, 2014 1:11 pm
This is a collection of downloads and other stuff to help the new dev team learn programming. Please note that most of this was designed for use with VB, however the concepts carry over well.
Powerpoints
Cheatsheet
Programs
Last edited by
Dux_Tell31 on Wed Jan 15, 2014 3:12 pm, edited 1 time in total.
"This is Minecraft, sir. We don't make physics, we ruin them." -Fr0stbyte124
"We are made of the elements out in space, in essense we are the universe discovering itself" -Neil Degrasse Tyson
-
Iv121
- Vice Admiral

- Posts:2414
- Joined:Fri Dec 07, 2012 3:40 pm
- Affiliation:UTN
- Location:-> HERE <-
Post
by Iv121 » Wed Jan 15, 2014 12:35 am
Well here's an exercise for you then - what is the differece between static and non-static variables and functions ? :P
They're watching ...
"I am forbidden tag" -CvN
-
Keon
- Developer
- Posts:662
- Joined:Thu Dec 06, 2012 7:09 pm
- Affiliation:Inactive
- IGN:ducky215
Post
by Keon » Wed Jan 15, 2014 1:42 pm
Iv121 wrote:Well here's an exercise for you then - what is the differece between static and non-static variables and functions ? :P
For me?
- I can be reached as ducky215 on minecraft forums -
-
Iv121
- Vice Admiral

- Posts:2414
- Joined:Fri Dec 07, 2012 3:40 pm
- Affiliation:UTN
- Location:-> HERE <-
Post
by Iv121 » Wed Jan 15, 2014 1:55 pm
Well you don't have to call it using the class, you can call it from INSIDE the class if you wish. What is important is that once a static variable or function is declared it will only ever exist in ONE instance and all modification made to it will effect the program as whole.
They're watching ...
"I am forbidden tag" -CvN
-
fr0stbyte124
- Developer
- Posts:727
- Joined:Fri Dec 07, 2012 3:39 am
- Affiliation:Aye-Aye
Post
by fr0stbyte124 » Thu Jan 16, 2014 9:56 pm
A static function, class, or variable is something that only one exists of and only one will ever exists. You can think of it as a global scope but the implications are more far reaching than that. The more you use them, the more you will get a feel for what role they play. Frequently, they are used to centrally manage instanced objects, such as counting how many instances there are or keeping track of the references to each so you can access them again.
The Vector and BoundingBox classes in Minecraft, for instance, keep a static pool of pre-instanced objects to avoid the overhead of reallocating memory each time you need a new one.
Other times, static functions simply exist because there is no reason to allocate memory for an object containing something like a Sqrt() function.