Skip to content

Commit

Permalink
Computer refactor part 2 (#37299)
Browse files Browse the repository at this point in the history
* Remove unnecessary/unused members of class computer

* Make name and mission_id of computer private

* Make alerts a member of computer

* Move initialization of next_attempt to constructor

* Replace shutdown_terminal with reset_terminal

* Check option enum instead of (translated) option string

* Migrate computer_action and computer_failure_type to use enum conversion

* Use JSON (de)serialization in class computer

* Lift ordering restriction of computer_action and computer_failure_type

* Remove COMPACT_OBSOLETE

* Fix COMPFAIL_DESTROY_DATA range

* Remove const modifiers in function declarations

Co-Authored-By: ZhilkinSerg <[email protected]>

Co-authored-by: ZhilkinSerg <[email protected]>
  • Loading branch information
Qrox and ZhilkinSerg committed Jan 24, 2020
1 parent b650898 commit e792bb8
Show file tree
Hide file tree
Showing 7 changed files with 338 additions and 225 deletions.
Loading

0 comments on commit e792bb8

Please sign in to comment.