Skip to content

Instantly share code, notes, and snippets.

@lethern
Created June 19, 2020 21:40
Show Gist options
  • Save lethern/e90b98e1affcffba16f2ff618ea8cd61 to your computer and use it in GitHub Desktop.
Save lethern/e90b98e1affcffba16f2ff618ea8cd61 to your computer and use it in GitHub Desktop.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Funkcja: Update()
// Działanie: update..
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Bohater :: Update()
{
brain->Update();
cycles++;
if( cycles>MaxCycles )cycles-= MaxCycles;
if ( MovementRegulator->IsReady(cycles) )
{
UpdateMovement();
}
if ( ThinkRegulator->IsReady(cycles) )
{
brain->Think();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment