Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
English doc
#1
Hi there!

I extracted the programing help from game.
I tried to reorganize it (a little).
Beginig with a some kind of table of contents. I extended a bit,
for example:

Type null Special value
Type nan Not number
Type file File class

o Syntax
Semicolon usage
Logical operator (and, or, not)
Comparisons (<, >, ==, !=, <=, >=)

download: https://www.dropbox.com/s/d84anf3i8itanw...n.pdf?dl=0
https://www.dropbox.com/s/dee03zlpcel8j3...n.odt?dl=0
https://www.dropbox.com/s/ee9n5o7tfoy4s2...n.zip?dl=0
#2
Looking good, nice work. We added some new stuff to CBot, like recently atan2() and rounding functions. Could you document them as well? We lack proper documentation of existing stuff and we could really use some help with that.
"After three days without programming, life becomes meaningless."
~The Tao of Programming
#3
(05-13-2015, 05:43 PM)tomaszkax86 Wrote: Looking good, nice work. We added some new stuff to CBot, like recently atan2() and rounding functions. Could you document them as well? We lack proper documentation of existing stuff and we could really use some help with that.

Thank you.
Yes, I'll made the necessary changes probably next week.
#4
(05-13-2015, 05:43 PM)tomaszkax86 Wrote: Looking good, nice work. We added some new stuff to CBot, like recently atan2() and rounding functions. Could you document them as well? We lack proper documentation of existing stuff and we could really use some help with that.

The release (development) version's keyboard (hungarian) is not working properly for me on win7 64 bit pc. For example: No semicolon on keyboard, and froze when I save a scricpt.
Thus I can't test the atan2 function fully.
The round, trunc is more simple.

I added the

Specific math instructions section:


abs Absolute value
rand Random number
round Rounds x to the nearest integer (Release version only)
trunc Return the Real value x truncated to an Integral (Release version only)
pow pow(x, y) x power y
sqrt Square root
acos Cosine
asin Arcsine
atan Arc tangent
atan2 Arctangent of the quotient of its arguments (Release version only)
cos Cosine
sin Sine
tan Tangent

Files:
pdf: https://www.dropbox.com/s/d9uxjebwmqkrno...7.pdf?dl=0
odt: https://www.dropbox.com/s/ms0pk740kuab2t...7.odt?dl=0
html: https://www.dropbox.com/s/9asxwp8354d7i6...7.zip?dl=0


Forum Jump:


Users browsing this thread: 1 Guest(s)