I just tried your code at the top of a working Tier 1 project and it compiled without complaint.
I suspect you are seeing some issue with your include files that actually doesn't have to do with the type definition in and of itself.
Unless you had another variable actually named player. That would cause problems.
I need a bigger context than just the snippet above, it turns out, to try to figure out why you are getting that error.
Also, try using the code delimeters. After typing your code in a post, highlight it and then click on the 'code' button on the far right of the buttons in the dialog area that you enter posts in.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master