alcemirfernandes / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

no public (?) method for getting heading #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. p._getang() is awkward to introduce when people didn't realize p was there 
to begin with

What version of the product are you using? On what operating system?
0.8/Ubuntu9.10

Please provide any additional information below.
Question: are patches/etc. welcome?  I would be happy to help out. . .

Original issue reported on code.google.com by aresnick...@gmail.com on 14 Jun 2010 at 12:28

GoogleCodeExporter commented 9 years ago
In recent versions, there are:

p.x
p.y
p.heading (or p.ang)

I think that should be the preferred way, but maybe the xy() function
should change to be xyh() to be used like:

x, y, heading = xyh()

It needs a better name though.

Original comment by miss...@hotmail.com on 14 Jun 2010 at 1:16

GoogleCodeExporter commented 9 years ago
Please test latest. Feedback on names welcome.

Original comment by miss...@hotmail.com on 19 Jun 2010 at 11:45

GoogleCodeExporter commented 9 years ago
heading available as:

pyn.heading
pyn.ang
pyn.xyh()
pyn.h()

for main pynguin:
xyh()
h()

Original comment by miss...@hotmail.com on 31 Jul 2010 at 4:20