Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
   Copyright (c) 2014 DIVIDE-Studio
   Copyright (c) 2009 Ionut Cava

   This file is part of DIVIDE Framework.

   Permission is hereby granted, free of charge, to any person obtaining a copy of this software
   and associated documentation files (the "Software"), to deal in the Software without restriction,
   including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
   and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
   subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
   INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
   OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 */

#ifndef _VEHICLE_H_
#define _VEHICLE_H_

#include "Unit.h"

namespace Divide {

/// Basic vehicle class
class Vehicle : public Unit {
public:
	/// Currently supported vehicle types
	enum VehicleType{
		/// Ground based vehicles
		VEHICLE_TYPE_GROUND      = toBit(1),
		/// Flying/Space vehicles
		VEHICLE_TYPE_AIR         = toBit(2),
		/// Water based vehicles (ships, boats, etc)
		VEHICLE_TYPE_WATER       = toBit(3),
		/// Underwater vehicles
		VEHICLE_TYPE_UNDERWATER  = toBit(4),
		/// For Future expansion
		VEHICLE_TYPE_PLACEHOLDER = toBit(10)
	};

	Vehicle(SceneGraphNode* const node);
	~Vehicle();

	/// A vehicle can be of multiple types at once
	void setVehicleTypeMask(U8 mask);
	/// Check if current vehicle fits the desired type
	bool checkVehicleMask(VehicleType type) const;

public:
	/// Is this vehicle controlled by the player or the AI?
	bool _playerControlled;
	U8   _vehicleTypeMask;
};

}; //namespace Divide

#endif

Commits for Divide-Framework/trunk/Source Code/Dynamics/Entities/Units/Headers/Vehicle.h

Diff revisions: vs.
Revision Author Commited Message
318 Diff Diff IonutCava picture IonutCava Sat 30 Aug, 2014 17:35:53 +0000

[Ionut]
- Wrapped the entire code in a “Divide” namespace
- VertexBuffers now call “shrink_to_fit” on all internal data storage
- Improved some vector performance by preferring “emplace_back” instead of “push_back” + proepr usage of reserve / resize
- Wrapped OIS specific types and classes in Divide::Input namespace
- Added the messageBox.layout file (forgot it in the previous few commits)

221 Diff Diff k1ngp1n picture k1ngp1n Wed 08 Jan, 2014 18:50:02 +0000

[Ionut] [[BR]]
- Merged branch “Shadows And Animations” back into trunk [[BR]]
- Added DoxygenGUI project file [[BR]]

  • Buggy *
171 Diff Diff k1ngp1n picture k1ngp1n Sun 03 Nov, 2013 18:15:06 +0000

-Replaced all tabs with spaces [[BR]]

160 Diff Diff k1ngp1n picture k1ngp1n Wed 10 Jul, 2013 17:07:04 +0000

[Ionut] [[BR]]
- Changed licensing from LGPL to the MIT license [[BR]]
— Code can now be used in non-commercial or commercial closed or open source projects [[BR]]

146 Diff Diff k1ngp1n picture k1ngp1n Wed 10 Apr, 2013 13:20:15 +0000

[Ionut] [[BR]]
*Final LightBranch updates 2/3 : Main trunk merge and build test (VC90, VC100, gDebugger) [[BR]]
-Merged light branch with trunk [[BR]]
-Deleted light branch [[BR]]

141 Diff Diff k1ngp1n picture k1ngp1n Wed 30 Jan, 2013 19:35:31 +0000

[Ionut] [[BR]]
-Updated to boost 1.52 and CEGUI 0.7.9 [[BR]]
-Updated to PhysX 3.2 [[BR]]
-Updated copyright notices [[BR]]

106 Diff Diff k1ngp1n picture k1ngp1n Wed 28 Mar, 2012 21:50:23 +0000

[Ionut] [[BR]]
Unstable revision – New animation code is not yet optimized and loading performance is low [[BR]]
[[BR]]
-Added animation loading and bone matrix calculations (actual skinning not implemented yet)[[BR]]
-Modified VBO classes to support dynamic data and faster updates [[BR]]
-Templatized Math classes (vec2,vec3,vec4,mat3,mat4) for greater flexibility [[BR]]
-Separated Rendering API from Rendering API version [[BR]]
-Fixed buggy GL error checking [[BR]]
-Small bugs fixed in Projectile and Weapon classes [[BR]]

104 k1ngp1n picture k1ngp1n Tue 13 Mar, 2012 19:33:49 +0000

[Ionut] [[BR]]
-Added base classes for the game logic part of the framework (just the backbone. main logic will be added iteratively): [[BR]]
--Unit class and it’s derived classes: Character [with derived: Player, NPC] and Vehicle [[BR]]
--Particle system: ParticleEmitter and Particle (with ParticleEmitterDescriptor and ParticleDescriptor) [[BR]]
--Triggers (launches an event when a unit is in range of it’s influence sphere) [[BR]]
--Weapon System: Weapon class, Projectile class and Ammunition class [[BR]]
[[BR]]
Improvements: [[BR]]
-Added more defines and template inline functions to help with various operations (integer bit conversion, XYZ to XZY coordinate conversion etc) [[BR]]
-Removed LightImpostor class and added a global Impostor class now used by lights, triggers and particle emitters [[BR]]
[[BR]]
Bug fixes: [[BR]]
-Removed some (weird) characters added by accident from terrain shader [[BR]]
-Use sqrtf for Floats and sqrt for Doubles[[BR]]