reset password
Author Message
jgnong
Posts: 10
Posted 16:22 Sep 09, 2019 |

Does anyone know where 

Actions.directionToVector(action)

from the snippet is from? Not sure where to look for the (parent)function

fumjum
Posts: 27
Posted 16:26 Sep 09, 2019 |

Actions is a class from the game.py file that has a function called directionVector

mkuko
Posts: 13
Posted 16:26 Sep 09, 2019 |

Yeah,

directionToVector(action)

is defined in the game.py file.

rabbott
Posts: 1649
Posted 17:23 Sep 09, 2019 |

I like the PyCharm IDE. In PyCharm, if you right-click on an identifier and select Go To > Declarations or Usages you will be taken to the declaration.