PDA

View Full Version : UT Classes for mobile?



alvarofer0020
01-03-2011, 04:45 PM
Hello im going to ask this

we can use the UT Classes on a mobile game?

since most of my code usses utclasses

it would be a problem port it to the Game Classes

Curious
01-03-2011, 04:55 PM
Hello im going to ask this

we can use the UT Classes on a mobile game?

since most of my code usses utclasses

it would be a problem port it to the Game Classes

You'd have to do a lot of refactoring, almost to a point where it's better to start from scratch. Depends on the quantity of your code.

alvarofer0020
01-03-2011, 04:57 PM
but then we can use the UT classes on a mobile game?

Curious
01-03-2011, 05:07 PM
but then we can use the UT classes on a mobile game?

You could use Mass Effect classes if they were available to you, but they would require a lot of editing before they actually started to work. It's your decision whether such an endeavour is worthwhile or is it better to start from scratch.

ffejnosliw
01-03-2011, 05:21 PM
You can't use UTPlayerController because it does not inherit from GamePlayerController which means it can't use a MobilePlayerInput for the input and thus cannot handle touch or motion input properly. Since the PlayerController and Pawn are fairly intertwined, you probably can't use UTPawn (really I mean a subclass) without some serious overriding and adjustments since you are not using a UTPlayerController. UTWeapon relies on the pawn being a UTPawn (or subclass) so you can't use that if you're not using a UTPawn (or subclass). You can see how it just keeps getting messier and messier. Using one UT class generally means using them all.

I won't say yes or no to whether you can use UT classes, but I can't imagine why you would want to. The UT classes are really there as an example of how to extend the base classes to create a game. Unless your game is extremely similar to a UT game (and, in general for a mobile game, I wouldn't really expect it to be), there is no real benefit to using UT classes that I can see personally.