breber / cardgames

Repository for continuation of CS309 Project
https://play.google.com/store/apps/details?id=com.worthwhilegames.cardgames
3 stars 1 forks source link

Make CardTranslator Static #33

Closed j7peters closed 11 years ago

j7peters commented 11 years ago

I think we could make this static and just have a unique ID for each card that is consistent across games

breber commented 11 years ago

I sort of like how we handled this in the iOS branch.

j7peters commented 11 years ago

how was that done?

On Fri, Jan 18, 2013 at 12:40 PM, Brian Reber notifications@github.comwrote:

I sort of like how we handled this in the iOS branch.

— Reply to this email directly or view it on GitHubhttps://github.com/breber/CardGames/issues/33#issuecomment-12435349.

Thanks, Josh Peters j7peters@gmail.com

breber commented 11 years ago

I think we had a method in the Card class called getResourceId that returns the right resource based on the card's id.