public Player(TechCraftGame game, PlayingState state, World world, Vector3 startPosition)
 {
     _game     = game;
     _world    = world;
     _position = startPosition;
     _state    = state;
 }
Exemple #2
0
 public WeaponManager(TechCraftGame game, World world, Player player)
 {
     _game         = game;
     _player       = player;
     _activeWeapon = Weapon.Bazooka;
     _world        = world;
 }
Exemple #3
0
 public WorldSettings(TechCraftGame game, Texture2D textureSet)
 {
     _textureSet = textureSet;
     _game       = game;
     //_vertexDeclaration = new VertexDeclaration(_game.GraphicsDevice, VertexPositionTextureShade.VertexElements);
     _vertexDeclaration = new VertexDeclaration(VertexPositionTextureShade.VertexElements);
 }
Exemple #4
0
 public IsometricCamera(TechCraftGame game, Vector3 position, float direction, float pitch)
     : base(game)
 {
     Position  = position;
     Direction = MathHelper.WrapAngle(direction);
     Pitch     = MathHelper.Clamp(pitch, -MathHelper.PiOver2, MathHelper.PiOver2);
     Rotation  = Quaternion.CreateFromYawPitchRoll(Direction, Pitch, 0.0F);
 }
Exemple #5
0
        public static Texture2D GenerateNoiseTexture(TechCraftGame game, int width, int height)
        {
            Random    random       = new Random();
            Texture2D noiseTexture = new Texture2D(game.GraphicsDevice, width, height);

            uint[] noiseData = new uint[width * height];
            for (int i = 0; i < width * height; i++)
            {
                if (random.Next(10) == 0)
                {
                    noiseData[i] = (uint)random.Next();
                }
                else
                {
                    noiseData[i] = Color.Black.PackedValue;
                }
            }
            noiseTexture.SetData(noiseData);
            return(noiseTexture);
        }
 public TechEngineComponent(TechCraftGame game)
 {
     _game = game;
 }
Exemple #7
0
        // private Block _blockNone;

        public World(TechCraftGame game)
        {
            _game = game;
            //_blockNone = new Block(BlockType.None);
        }
 public ArcBallCameraController(TechCraftGame game) :
     base(game)
 {
 }
Exemple #9
0
 public ProjectileTrailParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
 public ProjectileManager(TechCraftGame game, Player player, World world)
 {
     _game   = game;
     _world  = world;
     _player = player;
 }
Exemple #11
0
 public FirstPersonCamera(TechCraftGame game)
     : base(game)
 {
 }
Exemple #12
0
 public IsometricCamera(TechCraftGame game)
     : base(game)
 {
 }
 public ArcBallCamera(TechCraftGame game)
     : base(game)
 {
     _rnd = new Random();
 }
Exemple #14
0
 public Controller(TechCraftGame game)
 {
     _game = game;
 }
 public SimpleCamera(TechCraftGame game)
     : base(game)
 {
 }
 public BubbleParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
 public StateManager(TechCraftGame game)
     : base(game)
 {
 }
Exemple #18
0
 public Lighting(TechCraftGame game, World world)
 {
     _lighting = new byte[WorldSettings.MAPWIDTH, WorldSettings.MAPHEIGHT, WorldSettings.MAPLENGTH];
     _game     = game;
     _world    = world;
 }
Exemple #19
0
        }                                                             // nullable object.

        /// <summary>
        /// Initializes a new instance of the <see cref="BlockSelection"/> class.
        /// </summary>
        /// <param name="game">The game.</param>
        /// <param name="world">The world.</param>
        public BlockSelection(TechCraftGame game, World world)
        {
            _game  = game;
            _world = world;
        }
 public Manager(TechCraftGame game)
 {
     _game = game;
 }
 public BillboardManager(TechCraftGame game)
     : base(game)
 {
 }
Exemple #22
0
 public ParticleManager(TechCraftGame game)
     : base(game)
 {
     _particleEmitters = new List <ParticleEmitter>();
     _particleSystems  = new List <ParticleSystem>();
 }
 public GameClient(TechCraftGame game)
 {
     _game  = game;
     _world = new World(_game);
     _world.Initialize();
 }
Exemple #24
0
 public Camera(TechCraftGame game)
 {
     _game = game;
 }
Exemple #25
0
 public CubeRenderer(TechCraftGame game)
 {
     _game       = game;
     _vertexList = new List <VertexPositionColor>();
     //_vertexDeclaration = new VertexDeclaration( VertexPositionColor.VertexElements);
 }
 public FirstPersonCameraController(TechCraftGame game)
     : base(game)
 {
 }
Exemple #27
0
 public SmokePlumeParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }
Exemple #28
0
 public BlockPicker(TechCraftGame game, SpriteBatch spriteBatch)
     : base(game)
 {
     _spiteBatch = spriteBatch;
 }
 public ExplosionParticleSystem(TechCraftGame game, ContentManager content)
     : base(game, content)
 {
 }