def obtain_frame(self): """ obtain that portion of the animated chromograph that shows the unit as standing, walking or attacking in its current orientation """ frames_tall = max(self.orientation_indices) + 1 frames_wide = self.walking_animations + self.attacking_animations + 1 anim_row = self.orientation_indices[self.orientation] anim_col = self.animation_frame return chromographs.obtain_frame(self.animated_chromograph_name, anim_col, anim_row, frames_wide, frames_tall)
def obtain_frame(self): """ obtain that portion of the animated chromograph that shows the facility in its current condition """ frames_tall = self.conditions frames_wide = self.standing_animations anim_row = self.condition anim_col = self.animation_frame return chromographs.obtain_frame(self.animated_chromograph_name, anim_col, anim_row, frames_wide, frames_tall)