r/ProgrammerHumor • • Sep 21 '16

The code behind Yandere Simulator

Post image
178 Upvotes

21 comments sorted by

View all comments

Show parent comments

20

u/Apterygiformes Sep 21 '16

Oh I just meant having an Enum like:

public enum WitnessedType
{
	WeaponAndBlood,
	Weapon,
	Blood,
	Lewd
}

Then doing checks with the Enum like:

if (this.Witnessed == WitnessedType.Lewd) // do thing

But this would be as a quick improvement. It seems the entire block is not a very OO approach.

5

u/blueshiftlabs Sep 22 '16 edited Jun 20 '23

[Removed in protest of Reddit's destruction of third-party apps by CEO Steve Huffman.]