|
using System;
namespace Pocket1945
{
/// <summary>
/// This enum defines the different movement patterns
/// for the enemy planes.
/// </summary>
public enum MovePattern
{
/// <summary>
/// The plane should move straight forward.
/// </summary>
Straight = 0
}
/// <summary>
/// This enum defines all the different types of enemies
/// available in the game.
/// </summary>
public enum EnemyType
{
/// <summary>
/// Small dark green fighter plane.
/// </summary>
DarkGreenFighter = 0,
/// <summary>
/// Small white fighter plane.
/// </summary>
WhiteFighter = 1,
/// <summary>
/// Small light green fighter plane.
/// </summary>
LightGreenFighter = 2,
/// <summary>
/// Small blue fighter plane.
/// </summary>
BlueFighter = 3,
/// <summary>
/// Small yellow fighter plane.
/// </summary>
YellowFighter = 4,
/// <summary>
/// Small green bomber plane.
/// </summary>
GreenBomber = 5,
/// <summary>
/// Medium sized light green boss.
/// </summary>
LightGreenBoss = 6,
/// <summary>
/// Lagre dark green boss.
/// </summary>
DarkGreenBoss = 7,
/// <summary>
/// Large green bomber boss.
/// </summary>
GreenBomberBoss = 8,
/// <summary>
/// Medium sized green boss.
/// </summary>
WhiteBoss = 9
}
/// <summary>
/// Enum definging the different types of bullets the enemey and player can
/// fire.
/// </summary>
public enum BulletType
{
/// <summary>
/// A single shot. The default bullet of a fighter plane.
/// </summary>
SingleShot = 0,
/// <summary>
/// A big single shot. The default bullet of medium sized bosses.
/// </summary>
BigSingleShot = 1,
/// <summary>
/// Double shot. The bullet of a upgraded enemey plane.
/// </summary>
DoubleShot = 2,
/// <summary>
/// Small fireball, The default bullet of a small bomber.
/// </summary>
SmallFireball = 3,
/// <summary>
/// Big firewall, the default bullet of a big bomber.
/// </summary>
BigFireball = 4
}
/// <summary>
/// Enum defining different types of bonuses the player can collect.
/// </summary>
public enum BonusType
{
/// <summary>
/// Upgrading the power of the weapon
/// </summary>
WheaponUpgrade = 0,
/// <summary>
/// Upgrading speed.
/// </summary>
SpeedUpgrade = 1,
/// <summary>
/// Small power upgrade.
/// </summary>
SmallPowerUpgrade = 2,
/// <summary>
/// Lagre power upgrade.
/// </summary>
PowerUpgrade = 3,
/// <summary>
/// Upgrade the rank.
/// </summary>
RankUpgrade = 4,
/// <summary>
/// Extra life.
/// </summary>
ExtraLife = 5,
/// <summary>
/// Shield upgrade.
/// </summary>
ShieldUpgrade = 6
}
public enum EnemyStatus
{
Moving,
Dying,
Dead,
Idle
}
public enum PlayerStatus
{
Playing,
Dying,
Dead
}
/// <summary>
/// Enum defining different move directions. Used to determine which way
/// a bullet is moving, for instance.
/// </summary>
public enum MoveDirection
{
/// <summary>
/// Moving left.
/// </summary>
Left,
/// <summary>
/// Moving right.
/// </summary>
Right,
/// <summary>
/// Moving up.
/// </summary>
Up,
/// <summary>
/// Moving down.
/// </summary>
Down
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a C# developer from Norway. I'm a co-founder of a small ISV called GreIT AS. Our company site can be found at http://www.greit.no (all information in norwegian).
My everyday work consists of building ASP.NET web applications and work on our content management system, Webpakken. I use my spare time on side projects such as Pocket 1945 (http://workspaces.gotdotnet.com/pocket1945), a shooter game for the Pocket PC platform. It’s almost the opposite of my everyday work since games are small, focus on graphics and entertainment, while our CMS is large, focus on businesses and data.
When I’m not sitting in front of the computer I go snowboarding or skateboarding, depending on which time of the year it is.
I also enjoy fly fishing for salmon and trout in the summer. My personal record is a 10.5 KG salmon caught in Lakselva last summer and a 2 KG trout caught some where secret place in Finnmark. A bragging picture of me holding the salmon can be found at http://jonas.greit.no/pictures/salmon.jpg .
I did start blogging some time back, but I haven’t been to good at updating my blogg. I just got so much stuff going on that it’s hard to find time to add blogg posts. You can view my blogg at http://jonas.greit.no, just don’t expect too much.