Skip to content

Instantly share code, notes, and snippets.

@nulldatamap
Created August 26, 2014 06:58
Show Gist options
  • Select an option

  • Save nulldatamap/24e53e19f92403067a3a to your computer and use it in GitHub Desktop.

Select an option

Save nulldatamap/24e53e19f92403067a3a to your computer and use it in GitHub Desktop.
// Actor::update( &mut self, &Vec<Box<Actor>> )
pub fn update( &mut self ) {
for i in range( 0u, self.actors.len() ) {
let actor = self.actors.get_mut( i );
actor.update( &self.actors );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment